mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-30 11:13:06 +00:00
8 lines
326 B
HTML
8 lines
326 B
HTML
|
{{- $pages := slice }}
|
||
|
{{- range .Pages }}
|
||
|
{{- if and .Title .RelPermalink (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableTagHiddenPages true) ) }}
|
||
|
{{- $pages = $pages | append (dict "Title" .Title "Page" . )}}
|
||
|
{{- end }}
|
||
|
{{- end }}
|
||
|
{{- $pages = sort $pages ".Title" }}
|
||
|
{{- return $pages }}
|