Merge pull request #1637 from wtchangdm/add-trailing-slash

Add trailing slash for show more link
This commit is contained in:
Nuno Coração 2024-08-10 10:40:33 +01:00 committed by GitHub
commit 5409cefcce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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