Music listing page

This commit is contained in:
David Eisinger
2025-02-16 02:26:24 -05:00
parent 43f54a4cd2
commit 42f4bc63ad
2 changed files with 9 additions and 1 deletions

View File

@@ -11,7 +11,7 @@
{{ range findRE $audioRE $content -}}
{{ $url := . | replaceRE $audioRE "$1" | replaceRE ` ` "%20" -}}
{{ $title := . | replaceRE $audioRE "$2" -}}
{{ $content = replace $content . (printf "=> %s %s" $url $title) -}}
{{ $content = replace $content . (printf "=> %s %s" $url (substr $title 0 -4)) -}}
{{ end -}}
{{ range findRE `{{<(dither|thumbnail) [^/]+/>}}` $content -}}
{{ $rendered := $page.RenderString . -}}