Add a "See more ..." on the homepage to see more blog posts

This commit is contained in:
Alexis Tacnet
2017-01-04 14:53:49 +01:00
parent f3b2b053ca
commit 255816bddb
2 changed files with 15 additions and 0 deletions

View File

@@ -19,6 +19,11 @@
{{ end }}
{{ end }}
</ul>
{{ $nbTotalGroup := len (.Data.Pages.GroupByDate "Jan, 2006" "desc")}}
{{ if gt $nbTotalGroup 5}}
<a href="./blog/" class="see-more">See more ...</a>
{{ end }}
</div>
</div>
</section>