From 6be959ca812db36cbd741d3e94a019281b4c0895 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sat, 16 Aug 2025 20:01:49 +0200 Subject: fix: remove default favicon --- README.md | 2 ++ layouts/partials/head.html | 3 +++ static/android-chrome-192x192.png | Bin 1647 -> 0 bytes static/apple-touch-icon.png | Bin 1499 -> 0 bytes static/favicon-16x16.png | Bin 582 -> 0 bytes static/favicon-32x32.png | Bin 665 -> 0 bytes static/favicon.ico | Bin 7406 -> 0 bytes wiki/features/other-parameters.md | 6 ++---- 8 files changed, 7 insertions(+), 4 deletions(-) delete mode 100644 static/android-chrome-192x192.png delete mode 100644 static/apple-touch-icon.png delete mode 100644 static/favicon-16x16.png delete mode 100644 static/favicon-32x32.png delete mode 100644 static/favicon.ico diff --git a/README.md b/README.md index f068fba..1a6a06e 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,8 @@ Tastefejl is a fork of the [Typo] Hugo theme, with the following changes: * The home page embeds `content/home.md` rather than `homeIntroContent` from your `hugo.toml` because Markdown text should be in `.md` files. +* Removed the default favicon because no favicon is better than a favicon that has nothing to do with your website. + * Removed [Simple Icons] because I don't want to plaster brands on my website and at one point a 50MB .html file was committed (I filtered the git history to reduce the size of the repository.) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index de93078..b90d3db 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -6,11 +6,14 @@ {{ $faviconPath := (.Site.Params.faviconPath | default "" | absURL) }} +{{ $faviconIco := urls.JoinPath $faviconPath "favicon.ico" }} +{{ if fileExists $faviconIco }} +{{ end }} {{ with .OutputFormats.Get "rss" -}} {{ printf `` .Rel .MediaType.Type .Permalink site.Title | safeHTML }} diff --git a/static/android-chrome-192x192.png b/static/android-chrome-192x192.png deleted file mode 100644 index 5d32490..0000000 Binary files a/static/android-chrome-192x192.png and /dev/null differ diff --git a/static/apple-touch-icon.png b/static/apple-touch-icon.png deleted file mode 100644 index e491c83..0000000 Binary files a/static/apple-touch-icon.png and /dev/null differ diff --git a/static/favicon-16x16.png b/static/favicon-16x16.png deleted file mode 100644 index de4c3b3..0000000 Binary files a/static/favicon-16x16.png and /dev/null differ diff --git a/static/favicon-32x32.png b/static/favicon-32x32.png deleted file mode 100644 index 7970eaa..0000000 Binary files a/static/favicon-32x32.png and /dev/null differ diff --git a/static/favicon.ico b/static/favicon.ico deleted file mode 100644 index cc41b66..0000000 Binary files a/static/favicon.ico and /dev/null differ diff --git a/wiki/features/other-parameters.md b/wiki/features/other-parameters.md index 04db89a..aec001a 100644 --- a/wiki/features/other-parameters.md +++ b/wiki/features/other-parameters.md @@ -77,15 +77,14 @@ jsLocation = "http://example.org/umami.js" ## Favicons -The following favicons are included in the head of the website: +If `static/favicon.ico` exists the following favicons are included in the head of the website: + - `favicon.ico` - `favicon-16x16.png` - `favicon-32x32.png` - `android-chrome-192x192.png` - `apple-touch-icon.png` -You must override the existing one in your static folder. - You can also specify a subdirectory of /static if you prefer using the following param: @@ -95,7 +94,6 @@ faviconPath = 'your-path' ``` You can easily generate favicons using [this website](https://realfavicongenerator.net/) starting from your image. -[Here](https://github.com/tomfran/tomfran.github.io/tree/main/static) you can see an example of icons overriding default ones. ## OpenGraph -- cgit v1.2.3