mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-06-12 09:47:29 -05:00
Add latest posts section to the bottom of every content page
This commit is contained in:
@ -76,14 +76,18 @@
|
||||
|
||||
{{ $related := .Site.RegularPages.Related . | first 10 }}
|
||||
{{ with $related }}
|
||||
<div class="related">
|
||||
<div class="related-posts full-width-page-list">
|
||||
<hr>
|
||||
<h2>{{ i18n "related_posts" }}</h2>
|
||||
<div class="related-posts">
|
||||
{{ range . }}
|
||||
{{ .Render "summary/post" }}
|
||||
{{ end }}
|
||||
<h1>{{ i18n "related_posts" }}</h1>
|
||||
<div class="page-list">
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li>{{ .Render "summary/post" }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ partialCached "latest-posts.html" . }}
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user