diff options
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 |
commit | ef873ddd0296b45a3a330c1ba447d0b3ba417ca0 (patch) | |
tree | b3df3452e8ba6b4773a7e880f9e00044f859ed22 /src/content | |
parent | 719b5e5ea2fbcaebf45e38acfc531066809ff518 (diff) |
content: generateWikiHomeNewsBox: put "view rest" link in <p>
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/dependencies/generateWikiHomeNewsBox.js | 9 |
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'), + })), ])), ], }; |