refactor: get favicon from assets folder (#1246)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
mainSections = ["post"]
|
||||
rssFullContent = true
|
||||
favicon = ""
|
||||
favicon = "img/avatar.png"
|
||||
|
||||
[footer]
|
||||
since = 2020
|
||||
|
||||
@@ -19,7 +19,8 @@
|
||||
{{- end -}}
|
||||
|
||||
{{ 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 }}
|
||||
|
||||
{{- partial "google_analytics.html" . -}}
|
||||
|
||||
Reference in New Issue
Block a user