Fix post sorting + make card linkable
This commit is contained in:
parent
43e1a2a044
commit
1ffe31f6c4
7 changed files with 63 additions and 46 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue