From ab17b22c77854078873ae3919eecf99032ba7de7 Mon Sep 17 00:00:00 2001 From: Jimmy Date: Mon, 26 Jan 2026 23:49:27 +0100 Subject: [PATCH] refactor: get favicon from assets folder (#1246) --- demo/config/_default/params.toml | 2 +- layouts/_partials/head/head.html | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/demo/config/_default/params.toml b/demo/config/_default/params.toml index 38e0f2e..d5d240f 100644 --- a/demo/config/_default/params.toml +++ b/demo/config/_default/params.toml @@ -1,6 +1,6 @@ mainSections = ["post"] rssFullContent = true -favicon = "" +favicon = "img/avatar.png" [footer] since = 2020 diff --git a/layouts/_partials/head/head.html b/layouts/_partials/head/head.html index fe060a7..2149fa6 100644 --- a/layouts/_partials/head/head.html +++ b/layouts/_partials/head/head.html @@ -19,7 +19,8 @@ {{- end -}} {{ with .Site.Params.favicon }} - + {{- $favicon := partial "helper/image" (dict "Image" . "Resources" resources) -}} + {{ end }} {{- partial "google_analytics.html" . -}}