update document title assignment to use metadata from JSON

This commit is contained in:
2025-02-09 23:36:00 +11:00
parent 9acc88803f
commit c1c4c12c10

View File

@@ -1,7 +1,7 @@
fetch('index.json')
.then(response => response.json())
.then(data => {
document.title = data.title || 'Documentation';
document.title = data.metadata.title || 'Documentation';
})
.catch(error => {
console.error('Error loading title:', error);