🩹 Read logo from local storage, if available

This commit is contained in:
Alicia Sykes 2021-07-26 21:07:12 +01:00
parent be79049fb8
commit 91ededa7db
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ export default class ConfigAccumulator {
const filePageInfo = this.conf.pageInfo || {}; const filePageInfo = this.conf.pageInfo || {};
const pi = this.conf.pageInfo || defaults; // The page info object to return const pi = this.conf.pageInfo || defaults; // The page info object to return
pi.title = localPageInfo.title || filePageInfo.title || defaults.title; pi.title = localPageInfo.title || filePageInfo.title || defaults.title;
pi.logo = localPageInfo.logo || filePageInfo.logo || defaults.logo;
pi.description = localPageInfo.description || filePageInfo.description || defaults.description; pi.description = localPageInfo.description || filePageInfo.description || defaults.description;
pi.navLinks = localPageInfo.navLinks || filePageInfo.navLinks || defaults.navLinks; pi.navLinks = localPageInfo.navLinks || filePageInfo.navLinks || defaults.navLinks;
pi.footerText = localPageInfo.footerText || filePageInfo.footerText || defaults.footerText; pi.footerText = localPageInfo.footerText || filePageInfo.footerText || defaults.footerText;