« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page
diff options
context:
space:
mode:
Diffstat (limited to 'src/page')
-rw-r--r--src/page/news.js27
1 files changed, 16 insertions, 11 deletions
diff --git a/src/page/news.js b/src/page/news.js
index 5312371c..61a52dc0 100644
--- a/src/page/news.js
+++ b/src/page/news.js
@@ -23,21 +23,23 @@ export function write(entry, {wikiData}) {
       title: language.$('newsEntryPage.title', {entry: entry.name}),
 
       main: {
-        content:
-          html.tag('div', {class: 'long-content'}, [
-            generateStickyHeadingContainer({
-              title: language.$('newsEntryPage.title', {
-                entry: entry.name,
-              }),
+        content: [
+          generateStickyHeadingContainer({
+            class: ['long-content'],
+            title: language.$('newsEntryPage.title', {
+              entry: entry.name,
             }),
+          }),
 
+          html.tag('div', {class: 'long-content'}, [
             html.tag('p',
               language.$('newsEntryPage.published', {
                 date: language.formatDate(entry.date),
               })),
 
-            transformMultiline(entry.content)
+            transformMultiline(entry.content),
           ]),
+        ],
       },
 
       nav: generateNewsEntryNav(entry, {
@@ -69,13 +71,15 @@ export function writeTargetless({wikiData}) {
       title: language.$('newsIndex.title'),
 
       main: {
-        content:
+        content: [
+          generateStickyHeadingContainer({
+            class: ['long-content'],
+            title: language.$('newsIndex.title'),
+          }),
+
           html.tag('div',
             {class: ['long-content', 'news-index']},
             [
-              generateStickyHeadingContainer(
-                language.$('newsIndex.title')),
-
               ...newsData.map(entry =>
                 html.tag('article',
                   {id: entry.directory},
@@ -97,6 +101,7 @@ export function writeTargetless({wikiData}) {
                         })),
                   ])),
             ]),
+        ],
       },
 
       nav: {simple: true},