From 6abde1a572039fdc418bb2c5fa1ce7a964658576 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 16 Oct 2026 08:46:21 +0000 Subject: [PATCH] import-in-astro.sh: description aus stili-json ins Frontmatter schreiben MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Für die Einstiegsseite (index.html → _index.html) wird das Feld `description` aus dem stili-json extrahiert und — sofern vorhanden — als top-level-Frontmatter-Feld `description:` in die Content-Datei geschrieben. Für alle anderen Seiten bleibt das Feld leer/weggelassen. Co-Authored-By: Claude Sonnet 4.6 --- src/main/resources/import-in-astro.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/resources/import-in-astro.sh b/src/main/resources/import-in-astro.sh index 0c973c0..86433a9 100755 --- a/src/main/resources/import-in-astro.sh +++ b/src/main/resources/import-in-astro.sh @@ -165,12 +165,14 @@ for SOURCE in $(find "$SCRIPT_DIR" -maxdepth 1 -mindepth 1 -type f -name '*.html else TITLE_YAML=$(echo "$JSON" | jq '.project') fi + DESCRIPTION_YAML=$(echo "$JSON" | jq '.description // empty') CONTENT_REL="_index.html" PAGE_URL="${URL_BASE}/" ROUTING_FILE="index.astro" CANONICAL_URL="${CANONICAL}/" else TITLE_YAML=$(echo "$PAGE" | jq '.name') + DESCRIPTION_YAML="" HREF="$FILE" if [[ "$NUM_CHILDS" -gt 0 ]]; then CONTENT_REL="${PATH_PREFIX}${HREF%.html}/_index.html" @@ -190,6 +192,7 @@ for SOURCE in $(find "$SCRIPT_DIR" -maxdepth 1 -mindepth 1 -type f -name '*.html echo "title: $TITLE_YAML" echo "weight: $WEIGHT" echo "url: $PAGE_URL" + [[ -n "$DESCRIPTION_YAML" ]] && echo "description: $DESCRIPTION_YAML" echo "params:" echo " current: $CURRENT_BOOL" [[ "$CURRENT_BOOL" == "false" ]] && echo " canonical: $CANONICAL_URL" -- 2.39.5