From ef873ddd0296b45a3a330c1ba447d0b3ba417ca0 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 31 Jul 2023 19:07:42 -0300 Subject: content: generateWikiHomeNewsBox: put "view rest" link in

--- src/content/dependencies/generateWikiHomeNewsBox.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/content') 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'), + })), ])), ], }; -- cgit 1.3.0-6-gf8a5