diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-06-05 18:03:02 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-06-05 18:03:02 -0300 |
commit | cd0a73fccf140f5851c21d6ca7511b2cf11894ba (patch) | |
tree | 0201c822a8fd51cff3980427e05d2aa53869ecce /src | |
parent | 0b793af465849d4ade5f4793b3a8b80d4b6ea7cb (diff) |
content: generatePageLayout: <title> tag
This was already mostly implemented, wonder why it was commented out?
Diffstat (limited to 'src')
-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', { |