commit 30cd4499f30c3e79ab8f99e447e374d5e82c861c parent 434aff903dca9f8942049bfdccab50043a284d76 Author: David Eisinger <[email protected]> Date: Fri, 10 Jan 2025 00:30:28 -0500 better URL linebreaks + MP3 refs Diffstat:
| M | themes/v2/assets/css/style.scss | | | 2 | +- |
| M | themes/v2/layouts/archive/single.html | | | 3 | +-- |
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/themes/v2/assets/css/style.scss b/themes/v2/assets/css/style.scss @@ -227,7 +227,6 @@ audio::-webkit-media-controls-panel { @media print { body { background-color: white; - font-size: 24px; padding: 0; } @@ -244,6 +243,7 @@ audio::-webkit-media-controls-panel { color: #eee; content: " [" attr(href) "]"; font-weight: normal; + word-break: break-all; } } diff --git a/themes/v2/layouts/archive/single.html b/themes/v2/layouts/archive/single.html @@ -24,8 +24,7 @@ Posted {{ .Date | time.Format "2006-01-02" }} </h3> - {{ $audioLink := printf "<a href=\"%s$1\">$3</a>" (substr .Site.BaseURL 0 -1) }} - {{ replaceRE `<audio controls src="((.*)/(.*).mp3)"></audio>` $audioLink .Content | safeHTML }} + {{ replaceRE `<audio controls src="((.*)/(.*).mp3)"></audio>` "<a href=\"$1\">$3</a>" .Content | safeHTML }} </section> {{ end }} {{ end }}