diff --git a/src/App.vue b/src/App.vue index 5f52c8f..272b3f6 100644 --- a/src/App.vue +++ b/src/App.vue @@ -160,6 +160,9 @@ export default { this.config = merge(defaults, config); this.services = this.config.services; document.title = `${this.config.title} | ${this.config.subtitle}`; + if (this.config.stylesheet) { + this.createStylesheet(`@import "${this.config.stylesheet}";`); + } }, methods: { getConfig: function (path = "assets/config.yml") { @@ -235,6 +238,11 @@ export default { }, }; }, + createStylesheet: function(css) { + let style = document.createElement('style'); + style.appendChild(document.createTextNode(css)); + document.head.appendChild(style); + }, }, };