Add post archiving
This commit is contained in:
parent
44d8642e30
commit
0a7d512d2f
@ -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">
|
||||||
|
Loading…
Reference in New Issue
Block a user