set title to filename

This commit is contained in:
Djeeberjr 2022-05-13 15:09:04 +02:00
parent 981d63c6df
commit 776719cf45

View File

@ -6,7 +6,6 @@
const slug = window.location.pathname.split("/").pop(); const slug = window.location.pathname.split("/").pop();
let notFound = false; let notFound = false;
let component = null;
let contentType: string; let contentType: string;
let filename: string; let filename: string;
@ -28,6 +27,8 @@
} }
filename = match[1]; filename = match[1];
} }
document.title = filename;
} }
</script> </script>