set title to filename
This commit is contained in:
parent
981d63c6df
commit
776719cf45
@ -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>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user