From a172b1ea212b8f0416125fcb57d095449342120f Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Sat, 30 Apr 2022 21:53:05 -0500 Subject: [PATCH] Redo favicon stuff See https://medium.com/swlh/are-you-using-svg-favicons-yet-a-guide-for-modern-browsers-836a6aace3df --- config.yaml | 2 -- exampleSite/config.yaml | 6 +++--- layouts/partials/head.html | 8 ++++---- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/config.yaml b/config.yaml index 4c3975a..b9dbc45 100644 --- a/config.yaml +++ b/config.yaml @@ -4,8 +4,6 @@ markup: lineNos: true params: - faviconICO: favicon.ico - faviconPNG: favicon.png readingtime: true taxonomies: diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 3b8fbca..c000f70 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -20,9 +20,9 @@ params: # these are for the OpenGraph/Twitter embeds in Hugo description: Example website for bobatheme - # these are for favicons in bobatheme (defaults are shown here) - # faviconICO: favicon.ico - # faviconPNG: favicon.png + # these are for favicons in bobatheme (disabled by default) + # faviconSVG: favicon.svg + # appleTouchPNG: apple-touch-icon.png # show reading time (enabled by default) # readingtime: true diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 2c24d2f..22f8c3d 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -16,11 +16,11 @@ {{ end }} - {{ with .Site.Params.faviconICO }} - + {{ with .Site.Params.faviconSVG }} + {{ end }} - {{ with .Site.Params.faviconPNG }} - + {{ with .Site.Params.appleTouchPNG }} + {{ end }} {{ if .IsHome }}