updated site

This commit is contained in:
rasmus-kirk
2024-03-14 19:58:36 +01:00
parent 98778b082d
commit 1111564779
8 changed files with 21 additions and 7 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

+8 -7
View File
@@ -4,15 +4,16 @@ addEventListener('DOMContentLoaded', () => {
document.querySelectorAll('nav a').forEach((el) => {
const url = new URL(el.href);
const fullurl = url.origin + url.pathname.replace(/\/$/, "");
console.log("fullurl", fullurl);
console.log("fullpath", fullpath);
console.log("locationpathname", location.pathname);
console.log("urlpathname", url.pathname);
const onHome = fullpath === location.origin
const urlIsHome = fullurl === location.origin
console.log("onhome", onHome);
console.log("urlIsHome", urlIsHome);
console.log("")
//console.log("fullurl", fullurl);
//console.log("fullpath", fullpath);
//console.log("locationpathname", location.pathname);
//console.log("urlpathname", url.pathname);
//console.log("onhome", onHome);
//console.log("urlIsHome", urlIsHome);
//console.log("")
if (onHome && fullurl === fullpath) {
el.classList.add('active');
+13
View File
@@ -5,6 +5,19 @@
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<!-- Favicons -->
<!-- For all browsers -->
<link rel="icon" type="image/png" sizes="32x32" href="/docs/img/favicons/32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/docs/img/favicons/16x16.png">
<!-- For Google and Android -->
<link rel="icon" type="image/png" sizes="48x48" href="/docs/img/favicons/48x48.png">
<link rel="icon" type="image/png" sizes="192x192" href="/docs/img/favicons/192x192.png">
<!-- For iPad -->
<link rel="apple-touch-icon" type="image/png" sizes="167x167" href="/docs/img/favicons/167x167.png">
<!-- For iPhone -->
<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="/docs/img/favicons/180x180.png">
$for(author-meta)$
<meta name="author" content="$author-meta$" />
$endfor$