refactor: get favicon from assets folder (#1246)

This commit is contained in:
Jimmy
2026-01-26 23:49:27 +01:00
committed by GitHub
parent 9a4ee4fc33
commit ab17b22c77
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
mainSections = ["post"] mainSections = ["post"]
rssFullContent = true rssFullContent = true
favicon = "" favicon = "img/avatar.png"
[footer] [footer]
since = 2020 since = 2020
+2 -1
View File
@@ -19,7 +19,8 @@
{{- end -}} {{- end -}}
{{ with .Site.Params.favicon }} {{ with .Site.Params.favicon }}
<link rel="shortcut icon" href="{{ . | relURL }}" /> {{- $favicon := partial "helper/image" (dict "Image" . "Resources" resources) -}}
<link rel="shortcut icon" href="{{ $favicon.Permalink }}" />
{{ end }} {{ end }}
{{- partial "google_analytics.html" . -}} {{- partial "google_analytics.html" . -}}