This commit is contained in:
Luca Junge 2022-11-03 11:43:28 +01:00
parent 3d4da2ee45
commit d2ef65d336
11 changed files with 6297 additions and 0 deletions

21
src/_includes/layout.njk Normal file
View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/style.css">
<title>{{ title }}</title>
</head>
<body>
<nav>
<a href="/">Home</a>
</nav>
<main>
{{ content | safe }}
</main>
<footer>
impressum bla bla
</foot>
</body>
</html>

3
src/css/style.css Normal file
View file

@ -0,0 +1,3 @@
* {
color: red;
}

15
src/index.njk Normal file
View file

@ -0,0 +1,15 @@
---
layout: layout.njk
title: The Best Eleventy Demo TM
---
<h1>luca-junge.de</h1>
<p>Welcome to my blog</p>
<ul>
{% for post in collections.post %}
<li>
<a href="{{ post.url }}">{{ post.data.title }}</a>
</li>
{% endfor %}
</ul>

View file

@ -0,0 +1,8 @@
---
layout: layout.njk
tags: post
---
This is an image
![Image](image.png)

5
src/posts/posts.json Normal file
View file

@ -0,0 +1,5 @@
{
"layout": "layout.njk",
"title": "Unbenannt",
"tags": "post"
}