add trailing slash for show more link

This commit is contained in:
W.T. Chang 2024-07-24 22:41:21 +08:00
parent 18ed67b2e6
commit 3751df66d6

View file

@ -1,5 +1,5 @@
{{ $recentArticles := 5 }}
{{ $showMoreLinkDest := "/posts" }}
{{ $showMoreLinkDest := "/posts/" }}
{{ if .Site.Params.homepage.showRecent | default false }}
{{ if index .Site.Params.homepage "showRecentItems" }}
{{ $recentArticles = .Site.Params.homepage.showRecentItems }}