diff options
| author | Christian Cleberg <[email protected]> | 2025-05-28 11:36:05 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2025-05-28 11:36:05 -0500 |
| commit | 98f630963ec767030c91b5e7af810107177e18d3 (patch) | |
| tree | 3bac783191db44a5203039364db5d948c8a015a6 | |
| parent | f24ed3d01b66db3e34706fd3cdedd66ffff19d5b (diff) | |
| download | cleberg.net-98f630963ec767030c91b5e7af810107177e18d3.tar.gz cleberg.net-98f630963ec767030c91b5e7af810107177e18d3.tar.bz2 cleberg.net-98f630963ec767030c91b5e7af810107177e18d3.zip | |
feat: add light and dark favicons
| -rw-r--r-- | theme/static/favicon.ico | bin | 170471 -> 3696 bytes | |||
| -rw-r--r-- | theme/static/favicon_dark.ico | bin | 0 -> 3686 bytes | |||
| -rw-r--r-- | theme/templates/base.html | 3 |
3 files changed, 2 insertions, 1 deletions
diff --git a/theme/static/favicon.ico b/theme/static/favicon.ico Binary files differindex ad02180..399f17d 100644 --- a/theme/static/favicon.ico +++ b/theme/static/favicon.ico diff --git a/theme/static/favicon_dark.ico b/theme/static/favicon_dark.ico Binary files differnew file mode 100644 index 0000000..aee46ba --- /dev/null +++ b/theme/static/favicon_dark.ico diff --git a/theme/templates/base.html b/theme/templates/base.html index daa43d0..c993f97 100644 --- a/theme/templates/base.html +++ b/theme/templates/base.html @@ -12,7 +12,8 @@ {% if site_description is defined %}<meta name="description" content="{{ site_description }}" >{% endif %} {% if site_keywords is defined %}<meta name="keywords" content="{{ site_keywords }}" >{% endif %} <link rel="stylesheet" href="{{ url_for("static", file="styles.min.css") }}" type="text/css"> - <link rel="icon" type="image/x-icon" href="{{ url_for("static", file="favicon.ico") }}"> + <link rel="icon" type="image/x-icon" href="{{ url_for("static", file="favicon.ico") }}" media="(prefers-color-scheme: light)"> + <link rel="icon" type="image/x-icon" href="{{ url_for("static", file="favicon_dark.ico") }}" media="(prefers-color-scheme: dark)"> {% block meta %}{% endblock %} {% endblock %} </head> |
