initial
This commit is contained in:
parent
3d4da2ee45
commit
d2ef65d336
11 changed files with 6297 additions and 0 deletions
21
src/_includes/layout.njk
Normal file
21
src/_includes/layout.njk
Normal 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
3
src/css/style.css
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
* {
|
||||
color: red;
|
||||
}
|
||||
15
src/index.njk
Normal file
15
src/index.njk
Normal 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>
|
||||
8
src/posts/configuring-eleventy/index.md
Normal file
8
src/posts/configuring-eleventy/index.md
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
layout: layout.njk
|
||||
tags: post
|
||||
---
|
||||
|
||||
This is an image
|
||||
|
||||

|
||||
5
src/posts/posts.json
Normal file
5
src/posts/posts.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"layout": "layout.njk",
|
||||
"title": "Unbenannt",
|
||||
"tags": "post"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue