diff options
author | Martin Fischer <martin@push-f.com> | 2025-08-16 20:01:49 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2025-08-16 20:52:57 +0200 |
commit | 6be959ca812db36cbd741d3e94a019281b4c0895 (patch) | |
tree | 66fa202153ac30cb28ad325fc6c6dddf51cdb5f8 | |
parent | bd063c30e3a0160efe187d4a766e105157ba12fd (diff) |
fix: remove default favicon
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | layouts/partials/head.html | 3 | ||||
-rw-r--r-- | static/android-chrome-192x192.png | bin | 1647 -> 0 bytes | |||
-rw-r--r-- | static/apple-touch-icon.png | bin | 1499 -> 0 bytes | |||
-rw-r--r-- | static/favicon-16x16.png | bin | 582 -> 0 bytes | |||
-rw-r--r-- | static/favicon-32x32.png | bin | 665 -> 0 bytes | |||
-rw-r--r-- | static/favicon.ico | bin | 7406 -> 0 bytes | |||
-rw-r--r-- | wiki/features/other-parameters.md | 6 |
8 files changed, 7 insertions, 4 deletions
@@ -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 }} <link rel="icon" type="image/ico" href="{{ urls.JoinPath $faviconPath "favicon.ico" }}"> <link rel="icon" type="image/png" sizes="16x16" href="{{ urls.JoinPath $faviconPath "favicon-16x16.png" }}"> <link rel="icon" type="image/png" sizes="32x32" href="{{ urls.JoinPath $faviconPath "favicon-32x32.png" }}"> <link rel="icon" type="image/png" sizes="192x192" href="{{ urls.JoinPath $faviconPath "android-chrome-192x192.png" }}"> <link rel="apple-touch-icon" sizes="180x180" href="{{ urls.JoinPath $faviconPath "apple-touch-icon.png" }}"> +{{ end }} {{ with .OutputFormats.Get "rss" -}} {{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }} diff --git a/static/android-chrome-192x192.png b/static/android-chrome-192x192.png Binary files differdeleted file mode 100644 index 5d32490..0000000 --- a/static/android-chrome-192x192.png +++ /dev/null diff --git a/static/apple-touch-icon.png b/static/apple-touch-icon.png Binary files differdeleted file mode 100644 index e491c83..0000000 --- a/static/apple-touch-icon.png +++ /dev/null diff --git a/static/favicon-16x16.png b/static/favicon-16x16.png Binary files differdeleted file mode 100644 index de4c3b3..0000000 --- a/static/favicon-16x16.png +++ /dev/null diff --git a/static/favicon-32x32.png b/static/favicon-32x32.png Binary files differdeleted file mode 100644 index 7970eaa..0000000 --- a/static/favicon-32x32.png +++ /dev/null diff --git a/static/favicon.ico b/static/favicon.ico Binary files differdeleted file mode 100644 index cc41b66..0000000 --- a/static/favicon.ico +++ /dev/null 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 |