Minimal working prototype

This commit is contained in:
2022-12-26 02:57:25 +01:00
parent 7d22424cf1
commit 38b1017681
20 changed files with 733 additions and 72 deletions
+12 -12
View File
@@ -1,12 +1,12 @@
site:
entry-points:
- source: index.html
pipeline:
- layout: layouts/base
- target: dist/index.html
- source: 'posts/{post-name}.md'
pipeline:
- plugin: markdown
- layout: layouts/base
- layout: layouts/post.html
- target: 'dist/posts/{post-name}/index.html'
entryPoints:
- source: index.html
pipeline:
- layout: layouts/base.html
- target: dist/index.html
- source: posts/{id}.md
pipeline:
- plugin: markdown
- layout: layouts/base.html
- target: dist/posts/{id}/index.html
+5
View File
@@ -0,0 +1,5 @@
<h1>My Website</h1>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Minima, eveniet, dolorum amet, cupiditate quae excepturi aspernatur dolor voluptatem obcaecati ratione quas? Et explicabo illum iure eius porro, dolor quos doloremque!
</p>
+4 -2
View File
@@ -4,7 +4,9 @@
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{{ .Metadata.Title }}</title>
<title>{{- if .Title -}}{{ .Title }} | {{ else }}{{ end -}} My Blog</title>
</head>
<body></body>
<body>
{{- .Content -}}
</body>
</html>