Implement new template system added with Hugo v0.146.0 (#1858)

* feat(layouts): move all files in layouts/_default up to the layouts/ root.

* feat(layouts): rename layouts/partials folder to layouts/_partials

* feat(layouts): rename layouts/shortcodes folder to layouts/_shortcodes

* feat(taxonomy): add new taxonomy layout template

A template named taxonomy.html used to be a candidate for both Page kind term and taxonomy, now it’s only considered for taxonomy.
This commit is contained in:
Aditya Telange
2026-05-02 21:25:30 +05:30
committed by GitHub
parent 8af442a6a7
commit 87de3fb024
43 changed files with 0 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
{{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
{{- if and (gt (len $pages) 1) (in $pages . ) }}
<nav class="paginav">
{{- with $pages.Next . }}
<a class="prev" href="{{ .Permalink }}">
<span class="title">« {{ i18n "prev_page" }}</span>
<span>{{- .Name -}}</span>
</a>
{{- end }}
{{- with $pages.Prev . }}
<a class="next" href="{{ .Permalink }}">
<span class="title">{{ i18n "next_page" }} »</span>
<span>{{- .Name -}}</span>
</a>
{{- end }}
</nav>
{{- end }}