diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-01-25 14:51:00 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-01-25 14:51:00 -0400 |
commit | 76833c4083648d11780b0bbc9dd4de05479db240 (patch) | |
tree | e1832638c5219f244263bc0016de8f503bf64faa /src/page/homepage.js | |
parent | cccebf04544d9d80e84a32a905c5c133a46badd4 (diff) |
data-ize various page content calls
* page.cover replaces calls to generateCoverLink * page.main.headingMode replaces calls to generateStickyHeadingContainer or html.tag('h1') * page.main.classes: ['long-content'] replaces hard- coded calls to html.tag('div', {class: 'long-content'})
Diffstat (limited to 'src/page/homepage.js')
-rw-r--r-- | src/page/homepage.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/page/homepage.js b/src/page/homepage.js index cb1e1da1..94b0b65b 100644 --- a/src/page/homepage.js +++ b/src/page/homepage.js @@ -82,7 +82,9 @@ export function writeTargetless({wikiData}) { main: { classes: ['top-index'], - content: html.fragment([ + headingMode: 'none', + + content: [ html.tag('h1', wikiInfo.name), @@ -134,7 +136,7 @@ export function writeTargetless({wikiData}) { })), ]), ]))), - ]), + ], }, sidebarLeft: homepageLayout.sidebarContent && { |