From d0d2798bc96183680dea7baed4b2cfab4968dfcf Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson Date: Mon, 28 Aug 2023 20:11:26 +0200 Subject: [PATCH] MAke file_stat for local podcast files work if in subdir. --- layouts/podcast/rss.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/podcast/rss.xml b/layouts/podcast/rss.xml index 1de4b5f..b81c6bf 100644 --- a/layouts/podcast/rss.xml +++ b/layouts/podcast/rss.xml @@ -49,7 +49,7 @@ {{ end -}} {{ .Content | html }} {{ if site.Params.Podcast.local | default true -}} - {{ with .Params.podcast.mp3 }}{{ $file_stat := os.Stat (path.Join "/static" (. | relURL)) }}{{ end }} + {{ with .Params.podcast.mp3 }}{{ $file_stat := os.Stat (path.Join "/static" .) }}{{ end }} {{ else -}} {{ with .Params.podcast.mp3 }}{{ end }} {{ end -}}