« get me outta code hell

content: generateWikiHomeNewsBox: put "view rest" link in <p> - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-07-31 19:07:42 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-07-31 19:07:42 -0300
commitef873ddd0296b45a3a330c1ba447d0b3ba417ca0 (patch)
treeb3df3452e8ba6b4773a7e880f9e00044f859ed22 /src
parent719b5e5ea2fbcaebf45e38acfc531066809ff518 (diff)
content: generateWikiHomeNewsBox: put "view rest" link in <p>
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'),
+                  })),
             ])),
       ],
     };