Allow configurable number of recent posts.

This commit is contained in:
donfiguerres 2021-05-26 00:38:18 +08:00
parent 4254d03876
commit 5bd8863f98

View file

@ -9,7 +9,7 @@
{{ end }}
<div class="container">
<div class="row" id="recent-post-cards">
{{ range first 3 (where site.RegularPages.ByDate.Reverse "Type" "in" "posts" )}}
{{ range first .section.numShow (where site.RegularPages.ByDate.Reverse "Type" "in" "posts" )}}
{{ partial "cards/recent-post.html" . }}
{{ end }}
</div>