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.html19
1 files changed, 5 insertions, 14 deletions
diff --git a/themes/default/layouts/partials/function-generate-feeds.html b/themes/default/layouts/partials/function-generate-feeds.html
index e494596..87560fe 100644
--- a/themes/default/layouts/partials/function-generate-feeds.html
+++ b/themes/default/layouts/partials/function-generate-feeds.html
@@ -184,26 +184,17 @@
{{- $name := .FeedName -}}
{{- $domain := .FeedSourceDomain -}}
- {{- $faviconDomain :=
- (print
- "https://t1.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url="
- "http://"
- .FeedSourceDomain
- "&size=64"
- )
- -}}
+ {{- $favicon := partial "function-favicon-domain.html" $domain -}}
{{- with .FeedImageLink -}}
- {{- $faviconDomain = . -}}
+ {{- $favicon = . -}}
{{- $domain = $name | humanize | urlize -}}
{{- end -}}
- {{- $imageSource := partial "function-caches-images.html"
+ {{- $imageSource := partial "function-fetch-favicons.html"
(dict
- "Source" $faviconDomain
- "Fit" "160x160"
- "Target" (print (partial "function-paths.html" "media") "/")
- "Copy" (print (partial "function-paths.html" "media") "/favicon." $domain ".png")
+ "Source" $favicon
+ "Infix" $domain
)
-}}