mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-02-04 06:50:09 +00:00
Docs, Winutil website update (#3947)
* Updated winutil website add git ignore to not upload unnecessarily file. i have also updated microwin docs and added a copyright info to the footer * Update _index.md * Update KnownIssues.md * Update links update all the links for github to the corresponding pages. i have kept the original links aswell but commented out * update hugo workflow to use version 0.147.0 * Update en.yaml * update hugo toml to get rid off powered by * Update docs.yaml * Update KnownIssues.md * Update KnownIssues.md * Update KnownIssues.md * Update compatibility note for MicroWin and Ventoy * removed quad 9 dns * fixed all the incorrect code block in markdown file * Replace hardcoded page lists with auto-discovery shortcode Created a new shortcode at docs/layouts/shortcodes/autolinks.html. This enables auto-discovery when creating new Markdown files, streamlining the workflow for future documentation updates. * updated os requirements
This commit is contained in:
19
docs/layouts/shortcodes/autolinks.html
Normal file
19
docs/layouts/shortcodes/autolinks.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{{- $section := .Get "section" | lower -}}
|
||||
{{- $pages := slice -}}
|
||||
{{- range .Site.RegularPages -}}
|
||||
{{- if in .RelPermalink $section -}}
|
||||
{{- $pageTitle := .Title -}}
|
||||
{{- 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) -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
<ul>
|
||||
{{- range sort $pages "title" "asc" }}
|
||||
<li><a href="{{ .url }}">{{ .title }}</a></li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
Reference in New Issue
Block a user