diff --git a/src/index.html b/src/index.html
index d9b431d..5eaf3a8 100644
--- a/src/index.html
+++ b/src/index.html
@@ -29,7 +29,17 @@
-
+
+
+
@@ -985,18 +995,6 @@
anchorPlacement: "top-bottom", // defines which position of the element regarding to window should trigger the animation
});
- const ref = document.querySelector("link[rel='icon']");
- if (window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches) {
- ref.href = 'https://cdn.hello.coop/images/favicon-light.png';
- }
- window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', (event) => {
- if (event.matches) {
- ref.href = 'https://cdn.hello.coop/images/favicon-dark.png';
- } else {
- ref.href = 'https://cdn.hello.coop/images/favicon-light.png';
- }
- });
-
const image_base_path = 'https://cdn.hello.coop/images/';
const logos = [
diff --git a/src/legal/.vitepress/config.js b/src/legal/.vitepress/config.js
index cf74033..73128cb 100644
--- a/src/legal/.vitepress/config.js
+++ b/src/legal/.vitepress/config.js
@@ -9,7 +9,8 @@ export default {
['meta', { name: 'theme-color', content: '#303030' }],
['script', {'data-domain': 'hello.coop' , 'src': '/js/script.hash.js'}],
['script', { src: 'https://cdn.hello.coop/js/relative-wc-footer.js'}],
- ['link', { rel: 'icon', type: 'image/x-icon', href: 'https://cdn.hello.coop/images/favicon-dark.png' }]
+ ['link', { rel: 'icon', media: '(prefers-color-scheme: light)', href: 'https://cdn.hello.coop/images/favicon-light.png' }],
+ ['link', { rel: 'icon', media: '(prefers-color-scheme: dark)', href: 'https://cdn.hello.coop/images/favicon-dark.png' }]
],
themeConfig: {
siteTitle: false,
diff --git a/src/pages/.vitepress/config.js b/src/pages/.vitepress/config.js
index fbf08be..864c883 100644
--- a/src/pages/.vitepress/config.js
+++ b/src/pages/.vitepress/config.js
@@ -9,7 +9,8 @@ export default {
head: [
['meta', { name: 'theme-color', content: '#303030' }],
['script', { src: 'https://cdn.hello.coop/js/relative-wc-footer.js'}],
- ['link', { rel: 'icon', type: 'image/x-icon', href: 'https://cdn.hello.coop/images/favicon-dark.png' }]
+ ['link', { rel: 'icon', media: '(prefers-color-scheme: light)', href: 'https://cdn.hello.coop/images/favicon-light.png' }],
+ ['link', { rel: 'icon', media: '(prefers-color-scheme: dark)', href: 'https://cdn.hello.coop/images/favicon-dark.png' }]
],
themeConfig: {
sidebar: [
diff --git a/src/protocol/index.html b/src/protocol/index.html
index dcc064b..a0b18fe 100644
--- a/src/protocol/index.html
+++ b/src/protocol/index.html
@@ -3,7 +3,20 @@
-
+
+
+
+
+
+
HellÅ Protocol