From d86b9e4ade5fc0318bddff1feecc4646c2359c15 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sun, 22 Dec 2019 22:23:07 -0500 Subject: [PATCH] [+] Make title configurable --- public/index.html | 2 +- src/App.vue | 9 +++++++++ src/content/charlie-config.json | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/public/index.html b/public/index.html index 2fb7bbc..72397e6 100644 --- a/public/index.html +++ b/public/index.html @@ -5,7 +5,7 @@ - Charlie's Gallery + Loading... diff --git a/src/App.vue b/src/App.vue index d144b67..ed26c80 100644 --- a/src/App.vue +++ b/src/App.vue @@ -16,6 +16,15 @@ { // Create variable from imported config config = config; + + /** + * Initialize + */ + mounted() + { + document.title = config.title; + console.log() + } } diff --git a/src/content/charlie-config.json b/src/content/charlie-config.json index 87ecd88..ef0dd1f 100644 --- a/src/content/charlie-config.json +++ b/src/content/charlie-config.json @@ -1,3 +1,3 @@ { - "title": "Charlie's Gallery" + "title": "Charlie's Gallery" }