better URL linebreaks + MP3 refs
This commit is contained in:
@@ -227,7 +227,6 @@ audio::-webkit-media-controls-panel {
|
|||||||
@media print {
|
@media print {
|
||||||
body {
|
body {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
font-size: 24px;
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -244,6 +243,7 @@ audio::-webkit-media-controls-panel {
|
|||||||
color: #eee;
|
color: #eee;
|
||||||
content: " [" attr(href) "]";
|
content: " [" attr(href) "]";
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
word-break: break-all;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,8 +24,7 @@
|
|||||||
Posted {{ .Date | time.Format "2006-01-02" }}
|
Posted {{ .Date | time.Format "2006-01-02" }}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
{{ $audioLink := printf "<a href=\"%s$1\">$3</a>" (substr .Site.BaseURL 0 -1) }}
|
{{ replaceRE `<audio controls src="((.*)/(.*).mp3)"></audio>` "<a href=\"$1\">$3</a>" .Content | safeHTML }}
|
||||||
{{ replaceRE `<audio controls src="((.*)/(.*).mp3)"></audio>` $audioLink .Content | safeHTML }}
|
|
||||||
</section>
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user