feat(head): add favicon setting in config.yaml (#73)
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/42
This commit is contained in:
@@ -20,6 +20,7 @@ params:
|
|||||||
- post
|
- post
|
||||||
featuredImageField: image
|
featuredImageField: image
|
||||||
rssFullContent: true
|
rssFullContent: true
|
||||||
|
favicon:
|
||||||
|
|
||||||
dateFormat:
|
dateFormat:
|
||||||
published: Jan 02, 2006
|
published: Jan 02, 2006
|
||||||
|
|||||||
@@ -17,4 +17,8 @@
|
|||||||
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
|
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{ with .Site.Params.favicon }}
|
||||||
|
<link rel="shortcut icon" href="{{ . }}" />
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{- partial "head/custom.html" . -}}
|
{{- partial "head/custom.html" . -}}
|
||||||
Reference in New Issue
Block a user