hugo-theme-hyde-hyde/layouts/partials/page-single/post-related.html

13 lines
309 B
HTML
Raw Permalink Normal View History

{{ if .Site.Params.relatedPosts }}
{{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}
2018-07-16 03:22:00 +00:00
<div class="post__related">
<!-- related content -->
<h2>Related Articles</h2>
<ul class="related-posts">
{{ partial "posts-list.html" . }}
</ul>
</div>
{{ end }}
{{ end }}