mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
13 lines
376 B
HTML
13 lines
376 B
HTML
|
{{ $related := first 5 (where (where .Site.Pages ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }}
|
||
|
{{ with $related }}
|
||
|
<div class="related">
|
||
|
<h3 class="see-also">{{- i18n "related" -}}</h3>
|
||
|
<ul>
|
||
|
{{ range . }}
|
||
|
<li>
|
||
|
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||
|
</li>
|
||
|
{{ end }}
|
||
|
</ul>
|
||
|
</div>
|
||
|
{{ end }}
|