initial
This commit is contained in:
parent
3d4da2ee45
commit
d2ef65d336
11 changed files with 6297 additions and 0 deletions
15
.eleventy.js
Normal file
15
.eleventy.js
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
module.exports = function (eleventyConfig) {
|
||||||
|
eleventyConfig.addPassthroughCopy("css")
|
||||||
|
eleventyConfig.addPassthroughCopy("src/**/*.png")
|
||||||
|
eleventyConfig.addPassthroughCopy("src/**/*.jpg")
|
||||||
|
|
||||||
|
return {
|
||||||
|
passthroughFileCopy: true,
|
||||||
|
dir: {
|
||||||
|
input: "src",
|
||||||
|
includes: "_includes",
|
||||||
|
data: "_data",
|
||||||
|
output: "_site"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
2
.eleventyignore
Normal file
2
.eleventyignore
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
README.md
|
||||||
|
node_modules
|
||||||
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
node_modules
|
||||||
|
_site
|
||||||
1
README.md
Normal file
1
README.md
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
# luca-junge.de
|
||||||
6208
package-lock.json
generated
Normal file
6208
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
17
package.json
Normal file
17
package.json
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
"name": "website",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"description": "",
|
||||||
|
"main": "index.js",
|
||||||
|
"scripts": {
|
||||||
|
"build": "npx @11ty/eleventy",
|
||||||
|
"serve": "npx @11ty/eleventy --serve",
|
||||||
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
},
|
||||||
|
"keywords": [],
|
||||||
|
"author": "Luca Junge",
|
||||||
|
"license": "GPL-3.0-or-later",
|
||||||
|
"devDependencies": {
|
||||||
|
"@11ty/eleventy": "^1.0.2"
|
||||||
|
}
|
||||||
|
}
|
||||||
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