mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Add layout for post
This commit is contained in:
12
layouts/post/single.html
Normal file
12
layouts/post/single.html
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{{ partial "header.html" . }}
|
||||||
|
|
||||||
|
<article class="post">
|
||||||
|
<h1 class="post-title">{{ .Title }}</h1>
|
||||||
|
<time datetime="{{ .Date.Format "2006-01-02" }}" class="post-date">
|
||||||
|
{{ .Date.Format .Site.Params.date_format }}
|
||||||
|
</time>
|
||||||
|
|
||||||
|
{{ .Content }}
|
||||||
|
</article>
|
||||||
|
|
||||||
|
{{ partial "footer.html" . }}
|
||||||
Reference in New Issue
Block a user