mirror of
https://github.com/bastienwirtz/homer.git
synced 2024-12-26 08:38:56 +01:00
Merge pull request #120 from tpansino/feature/custom-document-title
Feature/custom document title
This commit is contained in:
commit
f2eacfcba1
@ -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"
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user