Compare commits
4
Commits
v4.0.0-beta.12
...
v3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
72e3b16638 | ||
|
|
60e2ad9201 | ||
|
|
6f0b4be72c | ||
|
|
7a09b136bb |
@@ -4,17 +4,11 @@
|
|||||||
|
|
||||||
{{- $title := slice -}}
|
{{- $title := slice -}}
|
||||||
|
|
||||||
{{- if $pageTitle }}
|
|
||||||
{{- $title = slice $pageTitle -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{- if and $paginator $paginator.HasPrev -}}
|
{{- if and $paginator $paginator.HasPrev -}}
|
||||||
<!-- Add page number-->
|
<!-- Add page number-->
|
||||||
{{ $title = $title | append (printf "Page %d" $paginator.PageNumber) }}
|
{{ $title = $title | append (printf "Page %d" $paginator.PageNumber) }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- if not .IsPage -}}
|
{{- $title = $title | append (default $siteTitle $pageTitle) -}}
|
||||||
{{ $title = $title | append $siteTitle }}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{ return delimit $title " - " }}
|
{{ return delimit $title " - " }}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{{- $ThemeVersion := "3.34.0" -}}
|
{{- $ThemeVersion := "3.34.2" -}}
|
||||||
<footer class="site-footer">
|
<footer class="site-footer">
|
||||||
<section class="copyright">
|
<section class="copyright">
|
||||||
©
|
©
|
||||||
|
|||||||
@@ -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 -}}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user