Bug fix, path.Join do not work with full scheme URLs. Fix in feed earlier, this is for the partial.
This commit is contained in:
parent
7290fdc11a
commit
dab1fb45da
2 changed files with 2 additions and 2 deletions
|
|
@ -238,7 +238,7 @@ theme: "zen"
|
||||||
languageCode: "en-GB" # Set your language code (only needed for none multilingual sites).
|
languageCode: "en-GB" # Set your language code (only needed for none multilingual sites).
|
||||||
|
|
||||||
params:
|
params:
|
||||||
alpine: # Add AlpineJS, default false.
|
alpine: true # Add AlpineJS, default false.
|
||||||
blogSections: # Sections whose <schema.org> `JSON+LD` in the page `<head>`
|
blogSections: # Sections whose <schema.org> `JSON+LD` in the page `<head>`
|
||||||
- blog # will be `@type: BlogPosting`.
|
- blog # will be `@type: BlogPosting`.
|
||||||
- post # Defaults to a list including only 'post' and 'blog'.
|
- post # Defaults to a list including only 'post' and 'blog'.
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{{ $src := (.Params.podcast.mp3 | absURL) -}}
|
{{ $src := (.Params.podcast.mp3 | absURL) -}}
|
||||||
{{ if site.Params.Podcast.cdn -}}
|
{{ if site.Params.Podcast.cdn -}}
|
||||||
{{ $src = path.Join site.Params.Podcast.cdn (.Params.podcast.mp3 | relURL) -}}
|
{{ $src = add site.Params.Podcast.cdn (.Params.podcast.mp3 | relURL) -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
<figure class="podcast">
|
<figure class="podcast">
|
||||||
<audio controls preload="{{ site.Params.Podcast.preload | default "metadata" }}"><source src="{{ $src }}" type="audio/mpeg"></audio>
|
<audio controls preload="{{ site.Params.Podcast.preload | default "metadata" }}"><source src="{{ $src }}" type="audio/mpeg"></audio>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue