Merge pull request #16 from directed-graph/master
feat: allow specifying favicon via configuration
This commit is contained in:
commit
be412d7167
@ -61,6 +61,8 @@ paginate = 10
|
|||||||
disableDisqusTypes = ["page"]
|
disableDisqusTypes = ["page"]
|
||||||
# If social media links are enabled then enable this to fetch icons from CDN instead of hosted on your site.
|
# If social media links are enabled then enable this to fetch icons from CDN instead of hosted on your site.
|
||||||
featherIconsCDN = true
|
featherIconsCDN = true
|
||||||
|
# Specify favicon (icons/i.png maps to static/icons/i.png). No favicon if not defined.
|
||||||
|
favicon = "icons/myicon.png"
|
||||||
|
|
||||||
# Main menu which appears below site header.
|
# Main menu which appears below site header.
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
|
@ -9,6 +9,10 @@
|
|||||||
<title>{{ $title }} - {{ $siteTitle }}</title>
|
<title>{{ $title }} - {{ $siteTitle }}</title>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- if isset .Site.Params "favicon" -}}
|
||||||
|
<link rel="icon" type="image/png" href={{ .Site.Params.favicon }} />
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
{{ with .OutputFormats.Get "rss" -}}
|
{{ with .OutputFormats.Get "rss" -}}
|
||||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||||
|
Loading…
Reference in New Issue
Block a user