@ -6,18 +6,39 @@
< meta name = "viewport" content = "width=device-width, initial-scale=1" >
< meta name = "viewport" content = "width=device-width, initial-scale=1" >
< title > rshyn.site< / title >
< title > rshyn.site< / title >
< link rel = "stylesheet" href = "/css/default.css" / >
< link rel = "stylesheet" href = "/css/default.css" / >
<!-- search for more icons at https://fontawesome.com/search?o=r&m=free -->
< link href = "/font-awesome/css/fontawesome.css" rel = "stylesheet" / >
< link href = "/font-awesome/css/brands.css" rel = "stylesheet" / >
< link href = "/font-awesome/css/solid.css" rel = "stylesheet" / >
< script >
// check for dark mode preference, add functionality to theme switcher
document.addEventListener("DOMContentLoaded", function() {
const btn = document.getElementById("btn-switch");
const bdy = document.querySelector("body");
if (window.matchMedia('(prefers-color-scheme: dark)')) {
bdy.dataset.theme = "dark";
}
btn.addEventListener("click", function () {
bdy.dataset.theme = (bdy.dataset.theme === "light") ? "dark" : "light";
});
});
< / script >
< / head >
< / head >
< body >
< body data-theme = "light" >
< header >
< header >
< div class = "logo" >
< div class = "logo" >
< a href = "/" > rshyn.site< / a >
< a href = "/" > rshyn.site< / a >
< / div >
< / div >
< nav >
< nav >
< a href = "/" > Home< / a >
< a href = "/" > Home< / a >
< a href = "/gallery.html" > Photos< / a >
< a href = "/gallery.html" title = "Photo gallery" > Photos< / a >
< a href = "https://github.com/rostyhn" title = "Github" > < i class = "fa-brands fa-github" > < / i > < / a >
< a href = "https://git.rshyn.site" title = "Self-hosted Gitea instance" > < i class = "fa-brands fa-git-alt" > < / i > < / a >
< button id = "btn-switch" title = "Switch light / dark mode" > < i class = "fa-solid fa-circle-half-stroke" > < / i > < / button >
< / nav >
< / nav >
< / header >
< / header >
< main role = "main" >
< main role = "main" >
< h1 > $title$< / h1 >
< h1 > $title$< / h1 >
$body$
$body$