diff --git a/public/about/index.html b/public/about/index.html index 234e0b4..3888079 100644 --- a/public/about/index.html +++ b/public/about/index.html @@ -26,25 +26,29 @@
- +
+ diff --git a/public/categories/index.html b/public/categories/index.html index 6e3ae4d..b34f18f 100644 --- a/public/categories/index.html +++ b/public/categories/index.html @@ -24,18 +24,22 @@ + diff --git a/public/dir1/b/index.html b/public/dir1/b/index.html index e835fd8..606ff3e 100644 --- a/public/dir1/b/index.html +++ b/public/dir1/b/index.html @@ -31,18 +31,22 @@ + diff --git a/public/dir1/index.html b/public/dir1/index.html index 196b7d2..453d9f9 100644 --- a/public/dir1/index.html +++ b/public/dir1/index.html @@ -21,25 +21,29 @@
  • - 2022-04-09 | B + B
  • + diff --git a/public/font/CaskaydiaCove.ttf b/public/font/CaskaydiaCove.ttf new file mode 100644 index 0000000..357a160 Binary files /dev/null and b/public/font/CaskaydiaCove.ttf differ diff --git a/public/font/CaskaydiaCoveMono.ttf b/public/font/CaskaydiaCoveMono.ttf new file mode 100644 index 0000000..9334ec7 Binary files /dev/null and b/public/font/CaskaydiaCoveMono.ttf differ diff --git a/public/index.html b/public/index.html index f620ef3..e7de65e 100644 --- a/public/index.html +++ b/public/index.html @@ -20,18 +20,22 @@ + diff --git a/public/index.xml b/public/index.xml index 4fd348f..0f9f242 100644 --- a/public/index.xml +++ b/public/index.xml @@ -7,6 +7,15 @@ Hugo -- gohugo.io en-us Sat, 09 Apr 2022 14:12:18 +0200 + + Links + http://example.org/links/ + Sat, 09 Apr 2022 17:37:48 +0200 + + http://example.org/links/ + + + About http://example.org/about/ @@ -25,15 +34,6 @@ - - A - http://example.org/a/ - Sat, 09 Apr 2022 14:02:35 +0200 - - http://example.org/a/ - this is file a dskfjksdjfkdfj - - B http://example.org/dir1/b/ diff --git a/public/js/darkmode.js b/public/js/darkmode.js new file mode 100644 index 0000000..e5e90c2 --- /dev/null +++ b/public/js/darkmode.js @@ -0,0 +1,59 @@ +let DARKMODE = window.sessionStorage.getItem("darkmode"); +const BUTTON = document.getElementById('darkmode-toggle'); +const BODY = document.querySelector("body"); + +BUTTON.addEventListener("click", switchMode); + +if (DARKMODE === null) { + askForPreferredTheme(); +} + +function askForPreferredTheme() { + if (window.matchMedia("(prefers-color-scheme: dark)").matches) { + DARKMODE = true; + console.log("dark mode detected!") + } + else { + DARKMODE = false; + console.log("light mode detected!") + } + save_preferences(); +} + +changeDisplay(); + +function switchMode() { + DARKMODE = !DARKMODE; + save_preferences(); + changeDisplay(); +}; + +function changeDisplay() { + console.log(DARKMODE); + if (DARKMODE == true) { + switchToDark(); + } + else { + switchToLight(); + } +}; + +function switchToLight() { + BUTTON.checked = false; + console.log("switched to light"); + BODY.classList.remove("dark"); + BODY.classList.add("light"); +} + +function switchToDark() { + BUTTON.checked = true; + console.log("switched to dark"); + BODY.classList.remove("light"); + BODY.classList.add("dark"); +} + +function save_preferences() { + sessionStorage.setItem("darkmode", DARKMODE) + console.log("darkmode preferences saved: ", DARKMODE) +} + diff --git a/public/links/index.html b/public/links/index.html new file mode 100644 index 0000000..dba810d --- /dev/null +++ b/public/links/index.html @@ -0,0 +1,54 @@ + + + + + Links + + + + + +
    +
    +

    Single Page Links

    +
    +
    + +
    +
    +
    + + +
    + + + diff --git a/public/posts/aeiuo/index.html b/public/posts/aeiuo/index.html index 5564a6b..21c7922 100644 --- a/public/posts/aeiuo/index.html +++ b/public/posts/aeiuo/index.html @@ -33,18 +33,22 @@ + diff --git a/public/posts/example/index.html b/public/posts/example/index.html index 794ae80..06144ad 100644 --- a/public/posts/example/index.html +++ b/public/posts/example/index.html @@ -33,18 +33,22 @@ + diff --git a/public/posts/index.html b/public/posts/index.html index 681d584..af9ef7e 100644 --- a/public/posts/index.html +++ b/public/posts/index.html @@ -21,29 +21,33 @@
  • - 2022-04-09 | Aeiuo + Aeiuo
  • - 2022-04-09 | Example + Example
  • + diff --git a/public/scss/main.css b/public/scss/main.css index 985ba15..fc90749 100644 --- a/public/scss/main.css +++ b/public/scss/main.css @@ -1,37 +1,49 @@ -body { - background-color: #352b42; - color: #f2f0e5; } +body.light { + background-color: #ffe7d6; + color: #73464c; } -a { - color: #c2d368; } - -footer, footer a { - background-color: #f2f0e5; - color: #352b42; } +body.dark { + background-color: black; + color: white; } @font-face { - font-family: Caskaydia Cove; - src: url(../fonts/Caskaydia); } + font-family: CaskaydiaCove; + src: url(/font/CaskaydiaCove.ttf); } + +* { + font-family: CaskaydiaCove; + font-size: 16pt; } + +h1 { + font-size: 42pt; } a { text-decoration: none; } -footer a { - text-decoration: underline; } +footer { + font-size: 20pt; } html, body { height: 100%; flex: auto; } footer { + height: 10%; + min-height: 24pt; + position: sticky; display: flex; - justify-content: center; align-items: center; - height: 10%; } + justify-content: center; } + +#footer-content { + width: 100%; } #content { min-height: 90%; } +#footer-right { + justify-self: right; } + * { padding: 0; margin: 0; } diff --git a/public/sitemap.xml b/public/sitemap.xml index 3331811..2fc3c32 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -2,6 +2,9 @@ + http://example.org/links/ + 2022-04-09T17:37:48+02:00 + http://example.org/about/ 2022-04-09T14:23:49+02:00 @@ -13,9 +16,6 @@ http://example.org/posts/ 2022-04-09T14:12:18+02:00 - - http://example.org/a/ - 2022-04-09T14:02:35+02:00 http://example.org/dir1/b/ 2022-04-09T14:02:24+02:00 diff --git a/public/tags/index.html b/public/tags/index.html index 32109b0..2e22461 100644 --- a/public/tags/index.html +++ b/public/tags/index.html @@ -24,18 +24,22 @@ + diff --git a/resources/_gen/assets/scss/scss/main.scss_f300667da4f5b5f84e1a9e0702b2fdde.content b/resources/_gen/assets/scss/scss/main.scss_f300667da4f5b5f84e1a9e0702b2fdde.content index 7969ccb..23979b0 100644 --- a/resources/_gen/assets/scss/scss/main.scss_f300667da4f5b5f84e1a9e0702b2fdde.content +++ b/resources/_gen/assets/scss/scss/main.scss_f300667da4f5b5f84e1a9e0702b2fdde.content @@ -1,17 +1,35 @@ body { - background-color: #ffe7d6; - color: #73464c; } + background-color: #292831; + color: #fbbbad; } + body.light { + background-color: #515262; + color: #c9cca1; } a { - background-color: #ab5675; - color: #ffe7d6; } + background-color: #ee8695; + color: #292831; } + a.light { + background-color: #ab5675; + color: #515262; } a.footer-nav-item.active { - color: #ab5675; } + color: #4a7a96; } + a.footer-nav-item.active.light { + color: #72dcbb; } -footer, footer a { - background-color: #73464c; - color: #ffe7d6; } +footer { + background-color: #333f58; + color: #292831; } + footer.light { + background-color: #caa05a; + color: #515262; } + +footer a { + color: #292831; + background-color: #333f58; } + footer a.light { + color: #515262; + background-color: #caa05a; } @font-face { font-family: CaskaydiaCove; diff --git a/themes/battheme b/themes/battheme index 572bc88..487b637 160000 --- a/themes/battheme +++ b/themes/battheme @@ -1 +1 @@ -Subproject commit 572bc88b45a78947870e2bc5e975896d1d21bc0e +Subproject commit 487b637ab93f05d57ec1acc88125a2332e8c6e86