From c1c4c12c10c4fe19ddb378d22e867943ad8d93c9 Mon Sep 17 00:00:00 2001 From: Litruv Date: Sun, 9 Feb 2025 23:36:00 +1100 Subject: [PATCH] update document title assignment to use metadata from JSON --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 00f3fed..199e785 100644 --- a/index.js +++ b/index.js @@ -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);