Fix post sorting + make card linkable

This commit is contained in:
hossainemruz 2020-06-11 01:02:30 +06:00
parent 43e1a2a044
commit 1ffe31f6c4
7 changed files with 63 additions and 46 deletions

View file

@ -2,7 +2,7 @@
<h1 class="text-center">Recent Posts</h1>
<div class="container">
<div class="row" id="recent-post-cards">
{{ range first 3 (where .Site.RegularPages "Type" "!=" "section" )}}
{{ range first 3 (where .Site.RegularPages.ByDate.Reverse "Type" "!=" "section" )}}
{{ partial "cards/recent-post.html" . }}
{{ end }}
</div>