Tweak theme

This commit is contained in:
Dave Gallant
2024-04-07 21:46:55 -04:00
parent 2475d2d67e
commit 8d898eb69a
117 changed files with 5 additions and 9 deletions

View File

@@ -0,0 +1,16 @@
{{ $type := .Get 0 }}
{{ $languages := readDir "node_modules/prismjs/components" }}
{{ $plugins := readDir "node_modules/prismjs/plugins" }}
{{ if eq $type "languages" }}
{{ range after 1 $languages -}}
{{ $lang := .Name | replaceRE ".*\\.min\\.js" "" | replaceRE "prism-([\\w-]*).js" "${1}" -}}
{{ if not (eq $lang "") }}
{{ $lang -}}
{{ end -}}
{{ end }}
{{ else if eq $type "plugins" }}
{{ range $plugins }}
{{ path.Base .Name -}}
{{ end }}
{{ end }}