diff options
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/dependencies/generatePageLayout.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/content/dependencies/generatePageLayout.js b/src/content/dependencies/generatePageLayout.js index 55f5b940..1853fb1e 100644 --- a/src/content/dependencies/generatePageLayout.js +++ b/src/content/dependencies/generatePageLayout.js @@ -101,6 +101,8 @@ export default { slots: { title: {type: 'html'}, + showWikiNameInTitle: {type: 'boolean', default: true}, + cover: {type: 'html'}, coverNeedsReveal: {type: 'boolean'}, @@ -423,15 +425,15 @@ export default { // developersComment, html.tag('head', [ - /* html.tag('title', - showWikiNameInTitle + (slots.showWikiNameInTitle ? language.formatString('misc.pageTitle.withWikiName', { - title, + title: slots.title, wikiName: data.wikiName, }) - : language.formatString('misc.pageTitle', {title})), - */ + : language.formatString('misc.pageTitle', { + title: slots.title, + }))), html.tag('meta', {charset: 'utf-8'}), html.tag('meta', { |