first working blog

This commit is contained in:
Luca 2024-10-09 10:31:04 +02:00
parent 000f4e4196
commit 16fe9bd093
13 changed files with 107 additions and 0 deletions

9
.editorconfig Normal file
View file

@ -0,0 +1,9 @@
root = true
[*]
indent_style = tab
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8

1
.eleventyignore Normal file
View file

@ -0,0 +1 @@
README.md

3
.gitignore vendored
View file

@ -130,3 +130,6 @@ dist
.yarn/install-state.gz .yarn/install-state.gz
.pnp.* .pnp.*
# Eleventy
_site/
package-lock.json

10
.prettierrc Normal file
View file

@ -0,0 +1,10 @@
{
"overrides": [
{
"files": "*.njk",
"options": {
"parser": "html"
}
}
]
}

View file

@ -0,0 +1,16 @@
---
title: runtimefee.lol
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/css/index.css" />
<title>{{ title }}</title>
</head>
<body>
{{ content | safe }}
</body>
</html>

View file

@ -0,0 +1,16 @@
---
title: runtimefee.lol - Homepage
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/css/index.css" />
<title>{{ title }}</title>
</head>
<body>
{{ content | safe }}
</body>
</html>

View file

@ -0,0 +1,16 @@
---
title: runtimefee.lol
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/css/index.css" />
<title>Post: {{ title }}</title>
</head>
<body>
{{ content | safe }}
</body>
</html>

View file

@ -0,0 +1,4 @@
export default {
tags: ["posts"],
layout: "layouts/post.njk",
};

View file

@ -0,0 +1,5 @@
---
title: My first post
---
Hello World

6
content/index.njk Normal file
View file

@ -0,0 +1,6 @@
---
layout: layouts/base.njk
permalink: /index.html
---
Hello Homepage

3
eleventy.config.js Normal file
View file

@ -0,0 +1,3 @@
export default function (eleventyConfig) {
eleventyConfig.addPassthroughCopy({ "public/css/": "/css/" });
}

18
package.json Normal file
View file

@ -0,0 +1,18 @@
{
"name": "runtimefee.lol",
"version": "0.0.1",
"description": "Game Development Resources",
"main": "index.js",
"scripts": {
"serve": "npx @11ty/eleventy --serve",
"build": "npx @11ty/eleventy",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "Luca Junge <LucaJunge@posteo.de> (https://luca-junge.de/)",
"license": "MIT",
"devDependencies": {
"@11ty/eleventy": "^3.0.0"
},
"type": "module"
}

0
public/css/bundle.css Normal file
View file