Minimal working prototype
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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,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>
|
||||
|
||||
Reference in New Issue
Block a user