mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
add trailing slash for homepage.showMoreLinkDest
This commit is contained in:
@@ -47,7 +47,7 @@ forgejoDefaultServer = "https://v8.next.forgejo.org"
|
|||||||
showRecent = false
|
showRecent = false
|
||||||
showRecentItems = 5
|
showRecentItems = 5
|
||||||
showMoreLink = false
|
showMoreLink = false
|
||||||
showMoreLinkDest = "/posts"
|
showMoreLinkDest = "/posts/"
|
||||||
cardView = false
|
cardView = false
|
||||||
cardViewScreenWidth = false
|
cardViewScreenWidth = false
|
||||||
layoutBackgroundBlur = false # only used when layout equals background
|
layoutBackgroundBlur = false # only used when layout equals background
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ Next, let's configure our homepage. We’re going with the _background_ layout,
|
|||||||
showRecent = true
|
showRecent = true
|
||||||
showRecentItems = 6
|
showRecentItems = 6
|
||||||
showMoreLink = true
|
showMoreLink = true
|
||||||
showMoreLinkDest = "/posts"
|
showMoreLinkDest = "/posts/"
|
||||||
cardView = true
|
cardView = true
|
||||||
cardViewScreenWidth = false
|
cardViewScreenWidth = false
|
||||||
layoutBackgroundBlur = true # only used when layout equals background
|
layoutBackgroundBlur = true # only used when layout equals background
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ Next, let's configure our homepage. We’re going with the _background_ layout,
|
|||||||
showRecent = true
|
showRecent = true
|
||||||
showRecentItems = 6
|
showRecentItems = 6
|
||||||
showMoreLink = true
|
showMoreLink = true
|
||||||
showMoreLinkDest = "/posts"
|
showMoreLinkDest = "/posts/"
|
||||||
cardView = true
|
cardView = true
|
||||||
cardViewScreenWidth = false
|
cardViewScreenWidth = false
|
||||||
layoutBackgroundBlur = true # only used when layout equals background
|
layoutBackgroundBlur = true # only used when layout equals background
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ Next, let's configure our homepage. We’re going with the _background_ layout,
|
|||||||
showRecent = true
|
showRecent = true
|
||||||
showRecentItems = 6
|
showRecentItems = 6
|
||||||
showMoreLink = true
|
showMoreLink = true
|
||||||
showMoreLinkDest = "/posts"
|
showMoreLinkDest = "/posts/"
|
||||||
cardView = true
|
cardView = true
|
||||||
cardViewScreenWidth = false
|
cardViewScreenWidth = false
|
||||||
layoutBackgroundBlur = true # only used when layout equals background
|
layoutBackgroundBlur = true # only used when layout equals background
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ defaultBackgroundImage = "image.jpg" # used as default for background images
|
|||||||
showRecent = true
|
showRecent = true
|
||||||
showRecentItems = 6
|
showRecentItems = 6
|
||||||
showMoreLink = true
|
showMoreLink = true
|
||||||
showMoreLinkDest = "/posts"
|
showMoreLinkDest = "/posts/"
|
||||||
cardView = true
|
cardView = true
|
||||||
cardViewScreenWidth = false
|
cardViewScreenWidth = false
|
||||||
layoutBackgroundBlur = true # only used when layout equals background
|
layoutBackgroundBlur = true # only used when layout equals background
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{{ $recentArticles := 5 }}
|
{{ $recentArticles := 5 }}
|
||||||
{{ $showMoreLinkDest := "/posts" }}
|
{{ $showMoreLinkDest := "/posts/" }}
|
||||||
{{ if index .Site.Params.homepage "showRecentItems" }}
|
{{ if index .Site.Params.homepage "showRecentItems" }}
|
||||||
{{ $recentArticles = .Site.Params.homepage.showRecentItems }}
|
{{ $recentArticles = .Site.Params.homepage.showRecentItems }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user