relLangUrl in $showMoreLinkDest

Currently, the show more button doesnt support multilingual websites. Fixed with "| relLangURL"
This commit is contained in:
torminal
2025-10-11 14:43:42 +02:00
committed by GitHub
parent 3344870b90
commit 9c5ecfb45b

View File

@@ -19,7 +19,7 @@
{{ $showMoreLinkDest = .Site.Params.homepage.showMoreLinkDest }}
{{ end }}
<div class="mt-10 flex justify-center">
<a href="{{ $showMoreLinkDest }}">
<a href="{{ $showMoreLinkDest | relLangURL }}">
<button
class="bg-transparent hover:text-primary-500 prose dark:prose-invert font-semibold py-2 px-4 border border-primary-500 hover:border-transparent rounded">
{{ i18n "recent.show_more" | markdownify }}