]> git.immae.eu Git - github/bastienwirtz/homer.git/commitdiff
Support custom document title
authorTom Pansino <2768420+tpansino@users.noreply.github.com>
Tue, 11 Aug 2020 00:40:52 +0000 (17:40 -0700)
committerTom Pansino <2768420+tpansino@users.noreply.github.com>
Fri, 4 Sep 2020 23:07:20 +0000 (16:07 -0700)
src/App.vue

index eb132d09e9cdb2c0683d1dad002c114abb9d7fd6..0f137b9eeb809d73c1d8014d534315363ab8590a 100644 (file)
@@ -159,7 +159,7 @@ export default {
     }
     this.config = merge(defaults, config);
     this.services = this.config.services;
-    document.title = `${this.config.title} | ${this.config.subtitle}`;
+    document.title = this.config.documentTitle || `${this.config.title} | ${this.config.subtitle}`;
     if (this.config.stylesheet) {
       let stylesheet = "";
       for (const file of this.config.stylesheet) {