From 6e12b25c988a9770d954451ecb8cef848436408a Mon Sep 17 00:00:00 2001 From: Rayjun0525 <92503959+Rayjun0525@users.noreply.github.com> Date: Wed, 17 May 2023 01:48:52 +0900 Subject: [PATCH] fix: baseURL variable on See all posts button (#38) * Fix See all posts error Add baseURL variable to link of see all posts button. * Fix See all posts button link Fix for 404 errors in see all posts if the default URL is not root. Add a baseURL variable to the link in the button. * Retuching Code of See all posts button Apply by changing all publishing buttons to the code suggested by @kusyka911 --- layouts/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/index.html b/layouts/index.html index 4dcde2a..002a71e 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -17,7 +17,9 @@
- See all posts + {{ range $firstSection := (where .Site.Sections "Section" "in" (first 1 (.Site.Params.mainSections))) }} + See all posts + {{ end }}
{{ end }}