diff --git a/README.md b/README.md
index 5117f9d..45bc9e2 100644
--- a/README.md
+++ b/README.md
@@ -214,6 +214,7 @@ params:
type: episodic/serial # Podcast type, defaults to episodic (iTunes).
newfeed: # Are you moving? Set the new feed url here (iTunes).
cdn: # CDN url, no slash on end (https://cdn.example.org).
+ local: false # Are the audio files local (true) or remote (false), default to true.
preload: none/metadata/auto # Set on the HTML5 audio tag, defaults to "metadata".
```
diff --git a/layouts/podcast/rss.xml b/layouts/podcast/rss.xml
index f87e92e..37f608a 100644
--- a/layouts/podcast/rss.xml
+++ b/layouts/podcast/rss.xml
@@ -50,7 +50,11 @@
{{ . }}{{ with $.Site.Author.name }} ({{ . }}){{ end }}
{{ end -}}
{{ .Content | html }}
+ {{ if $.Site.Params.Podcast.local | default true -}}
{{ with .Params.podcast.mp3 }}{{ $file_stat := os.Stat (add "/static" (. | relURL)) }}{{ end }}
+ {{ else -}}
+ {{ with .Params.podcast.mp3 }}{{ end }}
+ {{ end -}}
{{ with .Params.podcast.duration }}{{ . }}{{ end }}
{{ with .Params.podcast.image.src }}{{ $image := resources.Get . }}{{ end }}
{{ with .Params.podcast.episode }}{{ . }}{{ end }}