aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2020-09-05 10:08:58 -0700
committerGitHub <noreply@github.com>2020-09-05 10:08:58 -0700
commitf2eacfcba14e34511dac565889cf22ebcd3e8125 (patch)
treee77fd5f664924b9bf34b7f0ab82ab0d6afb10d4e
parentffe3404a2a9b36d69e880baa224375e82e64ae54 (diff)
parenta02961b70b8581cf66ff777f58a9892da0bba87a (diff)
downloadhomer-20.09.1.tar.gz
homer-20.09.1.tar.zst
homer-20.09.1.zip
Merge pull request #120 from tpansino/feature/custom-document-titlev20.09.1
Feature/custom document title
-rw-r--r--docs/configuration.md1
-rw-r--r--src/App.vue2
2 files changed, 2 insertions, 1 deletions
diff --git a/docs/configuration.md b/docs/configuration.md
index d1c8e6b..0e5d002 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -13,6 +13,7 @@ Title, icons, links, colors, and services can be configured in the `config.yml`
13 13
14title: "App dashboard" 14title: "App dashboard"
15subtitle: "Homer" 15subtitle: "Homer"
16# documentTitle: "Welcome" # Customize the browser tab text
16logo: "assets/logo.png" 17logo: "assets/logo.png"
17# Alternatively a fa icon can be provided: 18# Alternatively a fa icon can be provided:
18# icon: "fas fa-skull-crossbones" 19# icon: "fas fa-skull-crossbones"
diff --git a/src/App.vue b/src/App.vue
index eb132d0..0f137b9 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -159,7 +159,7 @@ export default {
159 } 159 }
160 this.config = merge(defaults, config); 160 this.config = merge(defaults, config);
161 this.services = this.config.services; 161 this.services = this.config.services;
162 document.title = `${this.config.title} | ${this.config.subtitle}`; 162 document.title = this.config.documentTitle || `${this.config.title} | ${this.config.subtitle}`;
163 if (this.config.stylesheet) { 163 if (this.config.stylesheet) {
164 let stylesheet = ""; 164 let stylesheet = "";
165 for (const file of this.config.stylesheet) { 165 for (const file of this.config.stylesheet) {