mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-04-05 22:28:31 +00:00
more winutil website updates (#3967)
* 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
This commit is contained in:
committed by
GitHub
parent
a12ea71adb
commit
8fc7d30112
@@ -6,14 +6,12 @@
|
||||
{{- if eq $pageTitle "" -}}
|
||||
{{- $pageTitle = .File.BaseFileName | humanize | title -}}
|
||||
{{- end -}}
|
||||
{{- if findRE "^# .+" .RawContent -}}
|
||||
{{- $pageTitle = replaceRE "(?s)^# (.+?)\\n.*" "$1" .RawContent -}}
|
||||
{{- end -}}
|
||||
{{- $pages = $pages | append (dict "title" $pageTitle "url" .RelPermalink) -}}
|
||||
{{- $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></li>
|
||||
<li><a href="{{ .url }}">{{ .title }}</a>{{ with .description }} - {{ . }}{{ end }}</li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user