diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 97c52b2..3db82e0 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -5,6 +5,14 @@ description = "Bridget is a minimal Hugo theme designed for photographers / visu # * tldr: set this to false if you want to develop and edit the js and css bundled = true +# whether to use favicon resource links +# generate these with https://realfavicongenerator.net +favicon = true +# modern SVG favicon to use in place of older style .png and .ico files +svgFavicon = "" +# Safari mask icon color +iconColor = "#000000" + # page config [page] # unified alt text for all images in the page diff --git a/exampleSite/static/android-chrome-192x192.png b/exampleSite/static/android-chrome-192x192.png new file mode 100644 index 0000000..ae8fa23 Binary files /dev/null and b/exampleSite/static/android-chrome-192x192.png differ diff --git a/exampleSite/static/android-chrome-512x512.png b/exampleSite/static/android-chrome-512x512.png new file mode 100644 index 0000000..92a3493 Binary files /dev/null and b/exampleSite/static/android-chrome-512x512.png differ diff --git a/exampleSite/static/apple-touch-icon.png b/exampleSite/static/apple-touch-icon.png new file mode 100644 index 0000000..10397df Binary files /dev/null and b/exampleSite/static/apple-touch-icon.png differ diff --git a/exampleSite/static/browserconfig.xml b/exampleSite/static/browserconfig.xml new file mode 100644 index 0000000..d416bc5 --- /dev/null +++ b/exampleSite/static/browserconfig.xml @@ -0,0 +1,9 @@ + + + + + + #ffffff + + + diff --git a/exampleSite/static/dot.svg b/exampleSite/static/dot.svg new file mode 100644 index 0000000..60be021 --- /dev/null +++ b/exampleSite/static/dot.svg @@ -0,0 +1,3 @@ + + + diff --git a/exampleSite/static/favicon-16x16.png b/exampleSite/static/favicon-16x16.png new file mode 100644 index 0000000..94d6544 Binary files /dev/null and b/exampleSite/static/favicon-16x16.png differ diff --git a/exampleSite/static/favicon-32x32.png b/exampleSite/static/favicon-32x32.png new file mode 100644 index 0000000..42f68e2 Binary files /dev/null and b/exampleSite/static/favicon-32x32.png differ diff --git a/exampleSite/static/favicon.ico b/exampleSite/static/favicon.ico new file mode 100644 index 0000000..09b5bbc Binary files /dev/null and b/exampleSite/static/favicon.ico differ diff --git a/exampleSite/static/mstile-150x150.png b/exampleSite/static/mstile-150x150.png new file mode 100644 index 0000000..b09f8ed Binary files /dev/null and b/exampleSite/static/mstile-150x150.png differ diff --git a/exampleSite/static/safari-pinned-tab.svg b/exampleSite/static/safari-pinned-tab.svg new file mode 100644 index 0000000..255e8b5 --- /dev/null +++ b/exampleSite/static/safari-pinned-tab.svg @@ -0,0 +1,39 @@ + + + + +Created by potrace 1.14, written by Peter Selinger 2001-2017 + + + + + + diff --git a/exampleSite/static/site.webmanifest b/exampleSite/static/site.webmanifest new file mode 100644 index 0000000..b20abb7 --- /dev/null +++ b/exampleSite/static/site.webmanifest @@ -0,0 +1,19 @@ +{ + "name": "", + "short_name": "", + "icons": [ + { + "src": "/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/android-chrome-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 19f9ec4..a4d19d8 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -7,6 +7,7 @@ {{- partial "head/link.html" -}} {{- partial "head/meta.html" -}} {{- partial "head/seo.html" -}} + {{- partial "head/favicon.html" -}}
diff --git a/layouts/partials/head/favicon.html b/layouts/partials/head/favicon.html new file mode 100644 index 0000000..6b8c6d7 --- /dev/null +++ b/layouts/partials/head/favicon.html @@ -0,0 +1,13 @@ +{{- if site.Params.favicon -}} + {{- with site.Params.svgFavicon -}} + + {{- else -}} + + + + {{- end -}} + + {{- with site.Params.iconColor -}} + + {{- end -}} +{{- end -}}