change post sorting to descending date
Prithu Goswami prithugoswami524@gmail.com
Fri, 08 May 2020 20:42:15 +0530
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
hugo-site/layouts/index.html
→
hugo-site/layouts/index.html
@@ -125,7 +125,7 @@ <div class=container>
<h1>I also write about stuff</h1> <div class="shadow-box"> <div class="section-text"> - {{ range sort (where .Site.RegularPages "Section" "posts") "Date" }} + {{ range sort (where .Site.RegularPages "Section" "posts") "Date" "desc"}} <a href="{{ .RelPermalink }}" target="_blank"> <div class=section-item> <h2>{{ .Title }}</h2>