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

11 lines
284 B
HTML
Raw Normal View History

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