mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-04-05 22:28:31 +00:00
* changed autolinks to now use frontmatter instead off #heading * updated all docs with front matter names * Update DisableLegacyRecovery.md this was the same as EnableLegacyRecovery file * made sure pages have got the corrects scripts on them * Update default.md updated the archetype default to make sure every new page had the title and description automatically on the front matter * Create BraveDebloat.md * added brave debloat link to tweaks.json * Update tweaks.json * Update tweaks.json
18 lines
578 B
HTML
18 lines
578 B
HTML
{{- $section := .Get "section" | lower -}}
|
|
{{- $pages := slice -}}
|
|
{{- range .Site.RegularPages -}}
|
|
{{- if in .RelPermalink $section -}}
|
|
{{- $pageTitle := .Title -}}
|
|
{{- if eq $pageTitle "" -}}
|
|
{{- $pageTitle = .File.BaseFileName | humanize | title -}}
|
|
{{- end -}}
|
|
{{- $pageDesc := .Description -}}
|
|
{{- $pages = $pages | append (dict "title" $pageTitle "description" $pageDesc "url" .RelPermalink) -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
<ul>
|
|
{{- range sort $pages "title" "asc" }}
|
|
<li><a href="{{ .url }}">{{ .title }}</a>{{ with .description }} - {{ . }}{{ end }}</li>
|
|
{{- end }}
|
|
</ul>
|