Pre-launch: Favicon fix
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
#################### default parameters ################################
|
#################### default parameters ################################
|
||||||
# favicon
|
# favicon
|
||||||
favicon = "images/favicon.png"
|
favicon = "/favicon.ico"
|
||||||
|
faviconPng = "/favicon.png"
|
||||||
# logo
|
# logo
|
||||||
logo = "images/logoDark.svg"
|
logo = "images/logoDark.svg"
|
||||||
main_site_link = "https://mantelzorgwoning.info"
|
main_site_link = "https://mantelzorgwoning.info"
|
||||||
@@ -9,7 +10,7 @@ site_logo = "images/site-logo.png"
|
|||||||
docs_logo = "images/docs-logo.png"
|
docs_logo = "images/docs-logo.png"
|
||||||
# use `px` or `x` with logo_width, example: "100px".
|
# use `px` or `x` with logo_width, example: "100px".
|
||||||
# Note: logo_width is not work with .svg file
|
# 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
|
# if logo_webp set false, will not generate WEBP version of logo | default is true
|
||||||
logo_webp = true
|
logo_webp = true
|
||||||
# logo text will only show when logo is missing.
|
# 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]
|
contact_form_action = "#" # contact form works with [https://airform.io/] or [https://formspree.io]
|
||||||
# feedback form action
|
# feedback form action
|
||||||
feedback_form_action = "#" # feedback form works with [https://airform.io/] or [https://formspree.io]
|
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= "<script>console.log(\"Hello World\")</script>"
|
# custom script on header, example: custom_script= "<script>console.log(\"Hello World\")</script>"
|
||||||
custom_script = ""
|
custom_script = ""
|
||||||
# table of content on document page
|
# table of content on document page
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
"htmlElements": {
|
"htmlElements": {
|
||||||
"tags": [
|
"tags": [
|
||||||
"a",
|
"a",
|
||||||
"base",
|
|
||||||
"blockquote",
|
"blockquote",
|
||||||
"body",
|
"body",
|
||||||
"br",
|
"br",
|
||||||
|
|||||||
35
layouts/partials/favicon.html
Normal file
35
layouts/partials/favicon.html
Normal file
@@ -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))) -}}
|
||||||
|
<link rel="shortcut icon" href="{{$faviconIco | absURL}}" type="image/x-icon">
|
||||||
|
<link rel="icon" href="{{$faviconIco | absURL}}" type="image/x-icon">
|
||||||
|
{{- else if fileExists (add `assets/` (string $faviconIco)) -}}
|
||||||
|
{{- $ico := resources.Get $faviconIco -}}
|
||||||
|
<link rel="shortcut icon" href="{{$ico.RelPermalink}}" type="image/x-icon">
|
||||||
|
<link rel="icon" href="{{$ico.RelPermalink}}" type="image/x-icon">
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- /* PNG / Apple touch */ -}}
|
||||||
|
{{- if $faviconPng -}}
|
||||||
|
{{- if or (hasPrefix $faviconPng "http") (fileExists (add `static/` (string $faviconPng))) -}}
|
||||||
|
<link rel="icon" type="image/png" sizes="48x48" href="{{$faviconPng | absURL}}">
|
||||||
|
<link rel="icon" type="image/png" sizes="96x96" href="{{$faviconPng | absURL}}">
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="{{$faviconPng | absURL}}">
|
||||||
|
{{- 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" -}}
|
||||||
|
<link rel="icon" type="image/png" sizes="48x48" href="{{$png48.RelPermalink}}">
|
||||||
|
<link rel="icon" type="image/png" sizes="96x96" href="{{$png96.RelPermalink}}">
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="{{$png180.RelPermalink}}">
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- end -}}
|
||||||
BIN
static/favicon.ico
Normal file
BIN
static/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
BIN
static/favicon.png
Normal file
BIN
static/favicon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
60
static/favicon.svg
Normal file
60
static/favicon.svg
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
width="135.46666mm"
|
||||||
|
height="135.46666mm"
|
||||||
|
viewBox="0 0 135.46666 135.46666"
|
||||||
|
version="1.1"
|
||||||
|
id="svg1"
|
||||||
|
inkscape:version="1.4.2 (ebf0e940d0, 2025-05-08)"
|
||||||
|
sodipodi:docname="favicon.svg"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview1"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#000000"
|
||||||
|
borderopacity="0.25"
|
||||||
|
inkscape:showpageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#d1d1d1"
|
||||||
|
inkscape:document-units="mm"
|
||||||
|
inkscape:zoom="0.56390993"
|
||||||
|
inkscape:cx="138.31996"
|
||||||
|
inkscape:cy="217.23327"
|
||||||
|
inkscape:window-width="1440"
|
||||||
|
inkscape:window-height="900"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="layer1" />
|
||||||
|
<defs
|
||||||
|
id="defs1" />
|
||||||
|
<g
|
||||||
|
inkscape:label="Laag 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1"
|
||||||
|
transform="translate(-68.502373,-91.023689)">
|
||||||
|
<circle
|
||||||
|
style="fill:#4c9e81;fill-opacity:1;stroke-width:0.296089"
|
||||||
|
id="path1"
|
||||||
|
cx="136.2357"
|
||||||
|
cy="158.75702"
|
||||||
|
r="67.73333" />
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:77.5788px;font-family:'Momo Trust Display';-inkscape-font-specification:'Momo Trust Display, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;fill:#ffffff;stroke-width:1.45461"
|
||||||
|
x="87.205917"
|
||||||
|
y="183.75034"
|
||||||
|
id="text1"><tspan
|
||||||
|
sodipodi:role="line"
|
||||||
|
id="tspan1"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:77.5788px;font-family:'Momo Trust Display';-inkscape-font-specification:'Momo Trust Display, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;stroke-width:1.45461"
|
||||||
|
x="87.205917"
|
||||||
|
y="183.75034">mi</tspan></text>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 2.4 KiB |
Reference in New Issue
Block a user