Add post templates for old-posts

This commit is contained in:
Philipp Oppermann
2017-03-25 18:14:38 +01:00
parent 97ef518895
commit 67739e4020
2 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
{{ 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 }}
{{ if isset .Params "updated" }}
(updated on {{ .Params.updated | dateFormat .Site.Params.date_format }})
{{ end }}
</time>
{{ .Content }}
</article>
<hr>
<div class="PageNavigation">
{{ if .PrevInSection }}
<a class="prev" href="{{ .PrevInSection.RelPermalink }}">&laquo; {{ .PrevInSection.Title }}</a>
{{ end }}
{{ if .NextInSection }}
<a class="next" href="{{ .NextInSection.RelPermalink }}">{{ .NextInSection.Title }} &raquo;</a>
{{ end }}
</div>
<hr>
{{ partial "disqus.html" . }}
{{ partial "anchorjs.html" . }}
{{ partial "footer.html" . }}

View File

@@ -0,0 +1,10 @@
<article class="post">
<h1 class="post-title">
<a href="{{ .RelPermalink }}">
{{ .Title }}
</a>
</h1>
{{ .Summary }}
</article>