Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⚙️ add trailing slash for homepage.showMoreLinkDest #1676

Merged
merged 2 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ Next, let's configure our homepage. We’re 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ Next, let's configure our homepage. We’re 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ Next, let's configure our homepage. We’re 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/layouts/partials/recent-articles-demo.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ $recentArticles := 5 }}
{{ $showMoreLinkDest := "/posts" }}
{{ $showMoreLinkDest := "/posts/" }}
{{ if index .Site.Params.homepage "showRecentItems" }}
{{ $recentArticles = .Site.Params.homepage.showRecentItems }}
{{ end }}
Expand Down