aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/function-generate-feeds.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/partials/function-generate-feeds.html')
-rw-r--r--themes/default/layouts/partials/function-generate-feeds.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/themes/default/layouts/partials/function-generate-feeds.html b/themes/default/layouts/partials/function-generate-feeds.html
index 0bbaf46..42ffd8b 100644
--- a/themes/default/layouts/partials/function-generate-feeds.html
+++ b/themes/default/layouts/partials/function-generate-feeds.html
@@ -10,7 +10,7 @@
{{- $url := delimit (first 1 $data) "" -}}
{{- $retitle := trim (delimit (after 1 $data) " ") " " -}}
- {{- with $fetch := resources.GetRemote $url -}}
+ {{- with $fetch := cond (default true $.Site.Params.site.offline) false (resources.GetRemote $url) -}}
{{- with $error := .Err -}}
{{- warnf "Feed fetch %s" $error -}}
@@ -197,6 +197,7 @@
{{- $imageSource := partial "function-fetch-favicons.html"
(dict
+ "Context" $.Page
"Source" $favicon
"Infix" (.FeedSourceLink | anchorize)
)