Add post archiving

This commit is contained in:
Ivaylo Ivanov 2024-11-29 16:07:27 +01:00
parent 44d8642e30
commit 0a7d512d2f

View File

@ -8,6 +8,7 @@
<!-- Range over the pages and only include the ones that are a post type --> <!-- Range over the pages and only include the ones that are a post type -->
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} {{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
{{ range (.Paginate $pages).Pages }} {{ range (.Paginate $pages).Pages }}
{{ if not (.Param "Archive") }}
<article> <article>
<h2> <h2>
<a href="{{ .Permalink }}"> <a href="{{ .Permalink }}">
@ -33,6 +34,7 @@
</article> </article>
{{ end }} {{ end }}
{{ end }}
</div> </div>
<!-- Custom paginator --> <!-- Custom paginator -->
<div class="paginator"> <div class="paginator">