« get me outta code hell

tweaks to transformMultiline - 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:
author(quasar) nebula <qznebula@protonmail.com>2023-01-01 22:06:11 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-01-01 22:06:11 -0400
commit35c569ae4adbe2854762019f4b2f530a0f662c48 (patch)
treeeb055e31d9bd5c0f86ee3ef39e6314a5558dd5cc /src/page
parent6ba58403ea491e7176f793e964f14142e73aa14b (diff)
tweaks to transformMultiline
Diffstat (limited to 'src/page')
-rw-r--r--src/page/homepage.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/page/homepage.js b/src/page/homepage.js
index 882daf72..0ae2b9b6 100644
--- a/src/page/homepage.js
+++ b/src/page/homepage.js
@@ -154,8 +154,10 @@ export function writeTargetless({wikiData}) {
         content:
           transformMultiline(
             homepageLayout.sidebarContent
-              .replace('[[news]]', '__GENERATE_NEWS__')
-          )
+              .replace('[[news]]', '__GENERATE_NEWS__'),
+            {
+              thumb: 'medium',
+            })
             .replace('<p>__GENERATE_NEWS__</p>',
               wikiInfo.enableNews
                 ? [
@@ -179,7 +181,9 @@ export function writeTargetless({wikiData}) {
                               link.newsEntry(entry),
                             ]),
 
-                            transformMultiline(entry.contentShort),
+                            transformMultiline(entry.contentShort, {
+                              thumb: 'medium',
+                            }),
 
                             entry.contentShort !== entry.content &&
                               link.newsEntry(entry, {