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