diff --git a/config/_default/params.toml b/config/_default/params.toml index ddefd2a..b472d0c 100755 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -1,6 +1,7 @@ #################### default parameters ################################ # favicon -favicon = "images/favicon.png" +favicon = "/favicon.ico" +faviconPng = "/favicon.png" # logo logo = "images/logoDark.svg" main_site_link = "https://mantelzorgwoning.info" @@ -9,7 +10,7 @@ site_logo = "images/site-logo.png" docs_logo = "images/docs-logo.png" # use `px` or `x` with logo_width, example: "100px". # Note: logo_width is not work with .svg file -logo_width = "190px" +logo_width = "220px" # if logo_webp set false, will not generate WEBP version of logo | default is true logo_webp = true # logo text will only show when logo is missing. @@ -22,9 +23,7 @@ image_gallery = true contact_form_action = "#" # contact form works with [https://airform.io/] or [https://formspree.io] # feedback form action feedback_form_action = "#" # feedback form works with [https://airform.io/] or [https://formspree.io] -# google tag manager, see https://developers.google.com/tag-manager/ -google_adsense = "" # example: ca-pub-xxxxxxxxxxxxxxxx -google_tag_manager = "" # example: G-XXXXXXXXXX + # custom script on header, example: custom_script= "" custom_script = "" # table of content on document page diff --git a/hugo_stats.json b/hugo_stats.json index 6e6d9b1..ef783af 100644 --- a/hugo_stats.json +++ b/hugo_stats.json @@ -2,7 +2,6 @@ "htmlElements": { "tags": [ "a", - "base", "blockquote", "body", "br", diff --git a/layouts/partials/favicon.html b/layouts/partials/favicon.html new file mode 100644 index 0000000..22b5e7f --- /dev/null +++ b/layouts/partials/favicon.html @@ -0,0 +1,35 @@ +{{- $faviconIco := site.Params.favicon -}} +{{- $faviconPng := site.Params.faviconPng -}} + +{{- if or $faviconIco $faviconPng -}} + + {{- /* ICO (shortcut / legacy) */ -}} + {{- if $faviconIco -}} + {{- if or (hasPrefix $faviconIco "http") (fileExists (add `static/` (string $faviconIco))) -}} + + + {{- else if fileExists (add `assets/` (string $faviconIco)) -}} + {{- $ico := resources.Get $faviconIco -}} + + + {{- end -}} + {{- end -}} + + {{- /* PNG / Apple touch */ -}} + {{- if $faviconPng -}} + {{- if or (hasPrefix $faviconPng "http") (fileExists (add `static/` (string $faviconPng))) -}} + + + + {{- else if fileExists (add `assets/` (string $faviconPng)) -}} + {{- $png := resources.Get $faviconPng -}} + {{- $png48 := $png.Resize "48x png" -}} + {{- $png96 := $png.Resize "96x png" -}} + {{- $png180 := $png.Resize "180x png" -}} + + + + {{- end -}} + {{- end -}} + +{{- end -}} diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000..fd446fd Binary files /dev/null and b/static/favicon.ico differ diff --git a/static/favicon.png b/static/favicon.png new file mode 100644 index 0000000..979f493 Binary files /dev/null and b/static/favicon.png differ diff --git a/static/favicon.svg b/static/favicon.svg new file mode 100644 index 0000000..ddb39b0 --- /dev/null +++ b/static/favicon.svg @@ -0,0 +1,60 @@ + + + + + + + + + mi + +