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:
Fredrik Jonsson 2023-07-25 08:50:45 +02:00
commit dab1fb45da
2 changed files with 2 additions and 2 deletions

View file

@ -238,7 +238,7 @@ theme: "zen"
languageCode: "en-GB" # Set your language code (only needed for none multilingual sites).
params:
alpine: # Add AlpineJS, default false.
alpine: true # Add AlpineJS, default false.
blogSections: # Sections whose <schema.org> `JSON+LD` in the page `<head>`
- blog # will be `@type: BlogPosting`.
- post # Defaults to a list including only 'post' and 'blog'.

View file

@ -1,6 +1,6 @@
{{ $src := (.Params.podcast.mp3 | absURL) -}}
{{ 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 -}}
<figure class="podcast">
<audio controls preload="{{ site.Params.Podcast.preload | default "metadata" }}"><source src="{{ $src }}" type="audio/mpeg"></audio>