add trailing slash for homepage.showMoreLinkDest

This commit is contained in:
W.T. Chang 2024-08-10 19:21:45 +08:00
parent 580f36f0de
commit c35242e912
6 changed files with 6 additions and 6 deletions

View file

@ -47,7 +47,7 @@ forgejoDefaultServer = "https://v8.next.forgejo.org"
showRecent = false
showRecentItems = 5
showMoreLink = false
showMoreLinkDest = "/posts"
showMoreLinkDest = "/posts/"
cardView = false
cardViewScreenWidth = false
layoutBackgroundBlur = false # only used when layout equals background

View file

@ -207,7 +207,7 @@ Next, let's configure our homepage. Were going with the _background_ layout,
showRecent = true
showRecentItems = 6
showMoreLink = true
showMoreLinkDest = "/posts"
showMoreLinkDest = "/posts/"
cardView = true
cardViewScreenWidth = false
layoutBackgroundBlur = true # only used when layout equals background

View file

@ -207,7 +207,7 @@ Next, let's configure our homepage. Were going with the _background_ layout,
showRecent = true
showRecentItems = 6
showMoreLink = true
showMoreLinkDest = "/posts"
showMoreLinkDest = "/posts/"
cardView = true
cardViewScreenWidth = false
layoutBackgroundBlur = true # only used when layout equals background

View file

@ -207,7 +207,7 @@ Next, let's configure our homepage. Were going with the _background_ layout,
showRecent = true
showRecentItems = 6
showMoreLink = true
showMoreLinkDest = "/posts"
showMoreLinkDest = "/posts/"
cardView = true
cardViewScreenWidth = false
layoutBackgroundBlur = true # only used when layout equals background

View file

@ -208,7 +208,7 @@ defaultBackgroundImage = "image.jpg" # used as default for background images
showRecent = true
showRecentItems = 6
showMoreLink = true
showMoreLinkDest = "/posts"
showMoreLinkDest = "/posts/"
cardView = true
cardViewScreenWidth = false
layoutBackgroundBlur = true # only used when layout equals background

View file

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