« get me outta code hell

fix missing h1 in static pages - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-08-17 22:05:45 -0300
committer(quasar) nebula <qznebula@protonmail.com>2022-08-17 22:05:45 -0300
commitac5cf2a1e11260ea7415c6e43b0f6270b68bbb69 (patch)
tree50399be01a3fdfe327dc837977fb84b99ce616b0
parentcb3edb0b2bdea87cd29559e4a9df2e7c062a4df7 (diff)
fix missing h1 in static pages
-rw-r--r--src/page/static.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/page/static.js b/src/page/static.js
index 5f50333a..8925b606 100644
--- a/src/page/static.js
+++ b/src/page/static.js
@@ -17,9 +17,10 @@ export function write(staticPage) {
       stylesheet: staticPage.stylesheet,
 
       main: {
-        content: html.tag('div',
-          {class: 'long-content'},
-          transformMultiline(staticPage.content)),
+        content: html.tag('div', {class: 'long-content'}, [
+          html.tag('h1', staticPage.name),
+          transformMultiline(staticPage.content),
+        ]),
       },
 
       nav: {simple: true},