« get me outta code hell

content: generatePageLayout: <title> tag - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
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
commitcd0a73fccf140f5851c21d6ca7511b2cf11894ba (patch)
tree0201c822a8fd51cff3980427e05d2aa53869ecce /src
parent0b793af465849d4ade5f4793b3a8b80d4b6ea7cb (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.js12
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', {