From dab1fb45da60c917f3b9f6c4e56bbf6803a3ea63 Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson Date: Tue, 25 Jul 2023 08:50:45 +0200 Subject: [PATCH] Bug fix, path.Join do not work with full scheme URLs. Fix in feed earlier, this is for the partial. --- README.md | 2 +- layouts/partials/podcast.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 73a646c..c309858 100644 --- a/README.md +++ b/README.md @@ -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 `JSON+LD` in the page `` - blog # will be `@type: BlogPosting`. - post # Defaults to a list including only 'post' and 'blog'. diff --git a/layouts/partials/podcast.html b/layouts/partials/podcast.html index 3fcd133..034ed89 100644 --- a/layouts/partials/podcast.html +++ b/layouts/partials/podcast.html @@ -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 -}}