Files
hermit-V2/layouts/partials/related-posts.html
GitHub Action 5d7becd0ee Attempt 1 to resolve #72
Signed-off-by: GitHub Action <action@github.com>
2024-08-05 14:03:45 +00:00

12 lines
319 B
HTML

{{- $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}
<div class="related-posts thin">
<h2>{{- if fileExists "i18n" -}} {{ i18n "seeAlso" }} {{- else -}} See Also {{- end -}}</h2>
<ul>
{{ range . }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
</div>
{{ end -}}