Add page layout and url format

This commit is contained in:
Philipp Oppermann
2016-04-25 23:41:28 +02:00
parent aa3d53f800
commit 7e05690ad8
2 changed files with 10 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ contentdir = "../blog"
[permalinks] [permalinks]
post = "/:slug.html" post = "/:slug.html"
page = "/:filename.html"
[blackfriday] [blackfriday]
plainIDAnchors = true plainIDAnchors = true

9
layouts/page/single.html Normal file
View File

@@ -0,0 +1,9 @@
{{ partial "header.html" . }}
<article class="post">
<h1 class="post-title">{{ .Title }}</h1>
{{ .Content }}
</article>
{{ partial "footer.html" . }}