1
0
Fork 0

[layout] Show related posts below social posts

This commit is contained in:
Sebastian Schulze 2020-09-14 14:19:59 +02:00
parent a89080c4e2
commit b79a8edf5d
Signed by: bascht
GPG Key ID: 5BCB1D3B4D38A35A
3 changed files with 27 additions and 0 deletions

View File

@ -11,6 +11,15 @@
<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" . }}
{{ $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>Posted</h4> <span class="dt-published">{{ .Date.Format "January, 02th 2006" }}</span>

View File

@ -17,6 +17,15 @@
</div>
Originally posted to <a href="{{ default .Params.original_url .Params.src }}">{{ default .Params.original_url .Params.src }}</a>
{{ partial "webmentions.html" . }}
{{ $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>Posted</h4> {{ .Date.Format "January, 02th 2006" }}

View File

@ -16,6 +16,15 @@
{{ end }}
Originally posted to <a href="{{ default .Params.original_url .Params.src }}">{{ default .Params.original_url .Params.src }}</a>
{{ partial "webmentions.html" . }}
{{ $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>Posted</h4> {{ .Date.Format "January, 02th 2006" }}