Skip to content

Commit

Permalink
Merge pull request #120 from tpansino/feature/custom-document-title
Browse files Browse the repository at this point in the history
Feature/custom document title
  • Loading branch information
bastienwirtz authored Sep 5, 2020
2 parents ffe3404 + a02961b commit f2eacfc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Title, icons, links, colors, and services can be configured in the `config.yml`

title: "App dashboard"
subtitle: "Homer"
# documentTitle: "Welcome" # Customize the browser tab text
logo: "assets/logo.png"
# Alternatively a fa icon can be provided:
# icon: "fas fa-skull-crossbones"
Expand Down
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f2eacfc

Please sign in to comment.