From c35242e9129f7383b40b3a64ebad9d436fcc2964 Mon Sep 17 00:00:00 2001 From: "W.T. Chang" <1546333+wtchangdm@users.noreply.github.com> Date: Sat, 10 Aug 2024 19:21:45 +0800 Subject: [PATCH] add trailing slash for homepage.showMoreLinkDest --- config/_default/params.toml | 2 +- exampleSite/content/guides/202310-blowfish-tutorial/index.it.md | 2 +- exampleSite/content/guides/202310-blowfish-tutorial/index.ja.md | 2 +- exampleSite/content/guides/202310-blowfish-tutorial/index.md | 2 +- .../content/guides/202310-blowfish-tutorial/index.zh-cn.md | 2 +- exampleSite/layouts/partials/recent-articles-demo.html | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config/_default/params.toml b/config/_default/params.toml index 8ec5457f0..d81f34e5c 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -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 diff --git a/exampleSite/content/guides/202310-blowfish-tutorial/index.it.md b/exampleSite/content/guides/202310-blowfish-tutorial/index.it.md index b58aa0adc..8a6601bd3 100644 --- a/exampleSite/content/guides/202310-blowfish-tutorial/index.it.md +++ b/exampleSite/content/guides/202310-blowfish-tutorial/index.it.md @@ -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 diff --git a/exampleSite/content/guides/202310-blowfish-tutorial/index.ja.md b/exampleSite/content/guides/202310-blowfish-tutorial/index.ja.md index b58aa0adc..8a6601bd3 100644 --- a/exampleSite/content/guides/202310-blowfish-tutorial/index.ja.md +++ b/exampleSite/content/guides/202310-blowfish-tutorial/index.ja.md @@ -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 diff --git a/exampleSite/content/guides/202310-blowfish-tutorial/index.md b/exampleSite/content/guides/202310-blowfish-tutorial/index.md index b58aa0adc..8a6601bd3 100644 --- a/exampleSite/content/guides/202310-blowfish-tutorial/index.md +++ b/exampleSite/content/guides/202310-blowfish-tutorial/index.md @@ -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 diff --git a/exampleSite/content/guides/202310-blowfish-tutorial/index.zh-cn.md b/exampleSite/content/guides/202310-blowfish-tutorial/index.zh-cn.md index b0175c801..107c1a743 100644 --- a/exampleSite/content/guides/202310-blowfish-tutorial/index.zh-cn.md +++ b/exampleSite/content/guides/202310-blowfish-tutorial/index.zh-cn.md @@ -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 diff --git a/exampleSite/layouts/partials/recent-articles-demo.html b/exampleSite/layouts/partials/recent-articles-demo.html index 21bbd8db2..07cf4704c 100644 --- a/exampleSite/layouts/partials/recent-articles-demo.html +++ b/exampleSite/layouts/partials/recent-articles-demo.html @@ -1,5 +1,5 @@ {{ $recentArticles := 5 }} -{{ $showMoreLinkDest := "/posts" }} +{{ $showMoreLinkDest := "/posts/" }} {{ if index .Site.Params.homepage "showRecentItems" }} {{ $recentArticles = .Site.Params.homepage.showRecentItems }} {{ end }}