]> juplo.de Git - maven-thymeleaf-skin/commit
Fix three regressions introduced by the previous simplification
authorKai Moritz <kai.milan.moritz@googlemail.com>
Wed, 17 Jun 2026 16:09:02 +0000 (16:09 +0000)
committerKai Moritz <kai.milan.moritz@googlemail.com>
Wed, 17 Jun 2026 16:09:02 +0000 (16:09 +0000)
commit7640984abb56571d67bb045dc879d48d6e40f32d
treed51736a6efdf4dafe97106f173c1f609a673a303
parentce283130b6b92886f78b3aacf163c3883ffbbb5b
Fix three regressions introduced by the previous simplification

1. URL normalization: "/${VAR##//}" strips the leading slash when the
   input already starts with "/". Fix: strip trailing and leading slash
   separately, then prepend "/": VAR="${2%%/}"; VAR="/${VAR##/}".
   Affects --current, --archived, and --canonical in both scripts.
   Consequences: missing leading "/" in frontmatter url/canonical fields
   (Hugo+Astro) and in the static-copy destination path (Hugo).

2. Root page title (Hugo+Astro): TITLE_YAML was unified to use
   $PAGE | jq '.name' for all pages. For index.html the Maven project
   name must come from $JSON | jq '.project', not from the site.xml
   page name. Moved TITLE_YAML assignment into the if/else branches.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
src/main/resources/import-in-astro.sh
src/main/resources/import-in-hugo.sh