2026-01-29 19:59:26 +00:00
|
|
|
{{- $section := .Get "section" | lower -}}
|
|
|
|
|
{{- $pages := slice -}}
|
|
|
|
|
{{- range .Site.RegularPages -}}
|
|
|
|
|
{{- if in .RelPermalink $section -}}
|
|
|
|
|
{{- $pageTitle := .Title -}}
|
|
|
|
|
{{- if eq $pageTitle "" -}}
|
|
|
|
|
{{- $pageTitle = .File.BaseFileName | humanize | title -}}
|
|
|
|
|
{{- end -}}
|
2026-02-10 19:49:36 +00:00
|
|
|
{{- $pageDesc := .Description -}}
|
|
|
|
|
{{- $pages = $pages | append (dict "title" $pageTitle "description" $pageDesc "url" .RelPermalink) -}}
|
2026-01-29 19:59:26 +00:00
|
|
|
{{- end -}}
|
|
|
|
|
{{- end -}}
|
|
|
|
|
<ul>
|
|
|
|
|
{{- range sort $pages "title" "asc" }}
|
2026-02-10 19:49:36 +00:00
|
|
|
<li><a href="{{ .url }}">{{ .title }}</a>{{ with .description }} - {{ . }}{{ end }}</li>
|
2026-01-29 19:59:26 +00:00
|
|
|
{{- end }}
|
|
|
|
|
</ul>
|