Compare commits

...
2 Commits
Author SHA1 Message Date
Jimmy Cai 72e3b16638 release: 3.34.2 2026-02-17 15:00:23 +01:00
JimmyandGitHub 60e2ad9201 fix: error when no page is available in the current list (#1263) 2026-02-17 14:59:30 +01:00
2 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
{{- $ThemeVersion := "3.34.1" -}} {{- $ThemeVersion := "3.34.2" -}}
<footer class="site-footer"> <footer class="site-footer">
<section class="copyright"> <section class="copyright">
&copy; &copy;
+3 -5
View File
@@ -1,11 +1,9 @@
{{- $pages := "" -}} {{- $pages := slice -}}
{{- if .IsHome -}} {{- if .IsHome -}}
{{ $pages = where .Site.RegularPages "Section" "in" .Site.Params.mainSections }} {{ $pages = where .Site.RegularPages "Section" "in" .Site.Params.mainSections }}
{{ $pages = where $pages "Params.hidden" "!=" true }} {{ $pages = where $pages "Params.hidden" "!=" true }}
{{- else if eq .Kind "term" -}} {{- else if or (eq .Kind "section") (eq .Kind "taxonomy") (eq .Kind "term") -}}
{{ $pages = where .Pages "Params.hidden" "!=" true }}
{{- else if or (eq .Kind "section") (eq .Kind "taxonomy") -}}
{{ $subsections := .Sections }} {{ $subsections := .Sections }}
{{ $pages = .Pages | complement $subsections }} {{ $pages = .Pages | complement $subsections }}
{{ $pages = where $pages "Params.hidden" "!=" true }} {{ $pages = where $pages "Params.hidden" "!=" true }}
@@ -16,7 +14,7 @@
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}
{{- if $pages -}} {{- if or .IsHome (eq .Kind "section") (eq .Kind "taxonomy") (eq .Kind "term") -}}
{{ $pages = .Paginate $pages }} {{ $pages = .Paginate $pages }}
{{- end -}} {{- end -}}