mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 12:13:19 -06:00
Redo favicon stuff
See https://medium.com/swlh/are-you-using-svg-favicons-yet-a-guide-for-modern-browsers-836a6aace3df
This commit is contained in:
parent
93d9164c6a
commit
a172b1ea21
@ -4,8 +4,6 @@ markup:
|
|||||||
lineNos: true
|
lineNos: true
|
||||||
|
|
||||||
params:
|
params:
|
||||||
faviconICO: favicon.ico
|
|
||||||
faviconPNG: favicon.png
|
|
||||||
readingtime: true
|
readingtime: true
|
||||||
|
|
||||||
taxonomies:
|
taxonomies:
|
||||||
|
@ -20,9 +20,9 @@ params:
|
|||||||
# these are for the OpenGraph/Twitter embeds in Hugo
|
# these are for the OpenGraph/Twitter embeds in Hugo
|
||||||
description: Example website for bobatheme
|
description: Example website for bobatheme
|
||||||
|
|
||||||
# these are for favicons in bobatheme (defaults are shown here)
|
# these are for favicons in bobatheme (disabled by default)
|
||||||
# faviconICO: favicon.ico
|
# faviconSVG: favicon.svg
|
||||||
# faviconPNG: favicon.png
|
# appleTouchPNG: apple-touch-icon.png
|
||||||
|
|
||||||
# show reading time (enabled by default)
|
# show reading time (enabled by default)
|
||||||
# readingtime: true
|
# readingtime: true
|
||||||
|
@ -16,11 +16,11 @@
|
|||||||
<script defer src="{{ .Permalink }}" type="text/javascript" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script>
|
<script defer src="{{ .Permalink }}" type="text/javascript" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ with .Site.Params.faviconICO }}
|
{{ with .Site.Params.faviconSVG }}
|
||||||
<link rel="icon" type="image/x-icon" href="{{ . | absURL }}" />
|
<link rel="icon" href="{{ . | absURL }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Site.Params.faviconPNG }}
|
{{ with .Site.Params.appleTouchPNG }}
|
||||||
<link rel="icon" type="image/png" href="{{ . | absURL }}" />
|
<link rel="apple-touch-icon" href="{{ . | absURL }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .IsHome }}
|
{{ if .IsHome }}
|
||||||
|
Loading…
Reference in New Issue
Block a user