diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2020-09-05 10:08:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-05 10:08:58 -0700 |
commit | f2eacfcba14e34511dac565889cf22ebcd3e8125 (patch) | |
tree | e77fd5f664924b9bf34b7f0ab82ab0d6afb10d4e | |
parent | ffe3404a2a9b36d69e880baa224375e82e64ae54 (diff) | |
parent | a02961b70b8581cf66ff777f58a9892da0bba87a (diff) | |
download | homer-f2eacfcba14e34511dac565889cf22ebcd3e8125.tar.gz homer-f2eacfcba14e34511dac565889cf22ebcd3e8125.tar.zst homer-f2eacfcba14e34511dac565889cf22ebcd3e8125.zip |
Merge pull request #120 from tpansino/feature/custom-document-titlev20.09.1
Feature/custom document title
-rw-r--r-- | docs/configuration.md | 1 | ||||
-rw-r--r-- | src/App.vue | 2 |
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 | ||
14 | title: "App dashboard" | 14 | title: "App dashboard" |
15 | subtitle: "Homer" | 15 | subtitle: "Homer" |
16 | # documentTitle: "Welcome" # Customize the browser tab text | ||
16 | logo: "assets/logo.png" | 17 | logo: "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) { |