We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2b1af9 commit 88e21d6Copy full SHA for 88e21d6
layouts/layout.dark.html
@@ -846,8 +846,8 @@
846
});
847
848
// automatically set title
849
- let h1 = document.querySelector("h1");
850
- if (document.title === '') {
+ const h1 = document.querySelector("h1");
+ if (!document.title && h1 && h1.textContent) {
851
document.title = h1.textContent;
852
}
853
</script>
layouts/layout.html
@@ -717,8 +717,8 @@
717
718
719
720
721
722
723
724
0 commit comments