1
0
Fork 0

[layout] Show related entries

This commit is contained in:
Sebastian Schulze 2020-09-14 14:16:30 +02:00
parent 371a20b7f8
commit f2c6b5f181
Signed by: bascht
GPG Key ID: 5BCB1D3B4D38A35A
1 changed files with 10 additions and 0 deletions

View File

@ -9,6 +9,16 @@
<time class="hidden dt-published" datetime="{{ $.Date }}">{{ .Date.Format "02. January 2006" }}</time>
<a class="p-author h-card hidden" href="https://bascht.com"><img class="u-photo hidden" src="/images/bascht.jpg"/>Bascht</a>
{{ partial "webmentions.html" . }}
<hr/>
{{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}
<h3>Ähnliche Beiträge</h3>
<ul>
{{ range . }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
{{ end }}
</article>
<aside>
<h4>Post vom</h4> {{ .Date.Format "02. January 2006" }}