first commit

This commit is contained in:
kalanggam 2023-10-18 12:32:43 -05:00
commit a3fbd984f7
7 changed files with 2402 additions and 0 deletions

10
.eleventy.js Normal file
View file

@ -0,0 +1,10 @@
module.exports = function (eleventyConfig) {
eleventyConfig.addPassthroughCopy("./src/style.css");
return {
dir: {
input: "src",
output: "public",
},
};
};

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
node_modules
_site
public

2347
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

16
package.json Normal file
View file

@ -0,0 +1,16 @@
{
"name": "salag",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "eleventy --serve",
"build": "eleventy"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@11ty/eleventy": "^2.0.1"
}
}

17
src/_includes/base.njk Normal file
View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{{ title }}</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<h1>{{ title }}</h1>
</header>
<main>
{{ content | safe }}
</main>
</body>
</html>

6
src/index.md Normal file
View file

@ -0,0 +1,6 @@
---
title: Hello World
layout: base.njk
---
Hello Gil!

3
src/style.css Normal file
View file

@ -0,0 +1,3 @@
body {
font-family: sans-serif;
}