Merge pull request #1676 from wtchangdm/fix_show_more_link

add trailing slash for homepage.showMoreLinkDest
This commit is contained in:
Nuno Coração 2024-08-28 12:38:58 +01:00 committed by GitHub
commit fa9c3439ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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 }}