From fcacd76acce0b3a7c120fbef854315eab501b02c Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 3 May 2026 10:34:12 +0200 Subject: [PATCH] Added additional `params` in the front-matter for the redirect-pages --- src/main/resources/import-in-hugo.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/resources/import-in-hugo.sh b/src/main/resources/import-in-hugo.sh index b6d6d99..e3b8fe7 100644 --- a/src/main/resources/import-in-hugo.sh +++ b/src/main/resources/import-in-hugo.sh @@ -207,6 +207,15 @@ do echo "url: $BASE$URL" >> $TARGET fi echo "weight: $WEIGHT" >> "$TARGET" + echo "params:" >> "$TARGET" + if [[ "$CURRENT" -eq 1 ]] + then + echo " current: true" >> "$TARGET" + fi + if [[ "$ARCHIVED" -eq 1 ]] + then + echo " canonical: $CANONICAL$URL" >> "$TARGET" + fi echo "---" >> "$TARGET" echo "" >> "$TARGET" echo "" >> "$TARGET" -- 2.39.5