mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Add post templates for old-posts
This commit is contained in:
28
blog/layouts/old-posts/single.html
Normal file
28
blog/layouts/old-posts/single.html
Normal 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 }}">« {{ .PrevInSection.Title }}</a>
|
||||||
|
{{ end }}
|
||||||
|
{{ if .NextInSection }}
|
||||||
|
<a class="next" href="{{ .NextInSection.RelPermalink }}">{{ .NextInSection.Title }} »</a>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
{{ partial "disqus.html" . }}
|
||||||
|
{{ partial "anchorjs.html" . }}
|
||||||
|
{{ partial "footer.html" . }}
|
||||||
10
blog/layouts/old-posts/teaser.html
Normal file
10
blog/layouts/old-posts/teaser.html
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<article class="post">
|
||||||
|
<h1 class="post-title">
|
||||||
|
<a href="{{ .RelPermalink }}">
|
||||||
|
{{ .Title }}
|
||||||
|
</a>
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
{{ .Summary }}
|
||||||
|
|
||||||
|
</article>
|
||||||
Reference in New Issue
Block a user