From f18ddd61d7430f82116b7f6003e68a548f39f766 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 7 Dec 2022 07:30:48 -0400 Subject: more sticky heading adjustments --- src/page/static.js | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'src/page') diff --git a/src/page/static.js b/src/page/static.js index 2a0f5e53..1689d16b 100644 --- a/src/page/static.js +++ b/src/page/static.js @@ -10,15 +10,23 @@ export function write(staticPage) { const page = { type: 'page', path: ['staticPage', staticPage.directory], - page: ({html, transformMultiline}) => ({ + page: ({ + generateStickyHeadingContainer, + html, + transformMultiline, + }) => ({ title: staticPage.name, stylesheet: staticPage.stylesheet, main: { - content: html.tag('div', {class: 'long-content'}, [ - html.tag('h1', staticPage.name), - transformMultiline(staticPage.content), - ]), + content: [ + generateStickyHeadingContainer({ + class: ['long-content'], + title: staticPage.name, + }), + html.tag('div', {class: 'long-content'}, + transformMultiline(staticPage.content)), + ], }, nav: {simple: true}, -- cgit 1.3.0-6-gf8a5