« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generateWikiHomeNewsBox.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/content/dependencies/generateWikiHomeNewsBox.js b/src/content/dependencies/generateWikiHomeNewsBox.js
index a1efb810..45a3376b 100644
--- a/src/content/dependencies/generateWikiHomeNewsBox.js
+++ b/src/content/dependencies/generateWikiHomeNewsBox.js
@@ -66,9 +66,12 @@ export default {
 
               content.slot('thumb', 'medium'),
 
-              readMoreLink?.slots({
-                content: language.$('homepage.news.entry.viewRest'),
-              }),
+              html.tag('p',
+                {[html.onlyIfContent]: true},
+                readMoreLink
+                  ?.slots({
+                    content: language.$('homepage.news.entry.viewRest'),
+                  })),
             ])),
       ],
     };