From 3457705be5b809b9ceaee4c639ef209dedc3f253 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Tue, 23 Jun 2026 22:39:54 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20verify=5Farticle.sh=20+5=20Checks=20?= =?UTF-8?q?=E2=80=94=20Dachzeile,=20Infobox,=20Read-More-Pos,=20Quellen-Li?= =?UTF-8?q?nks,=20Recherchestand?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- verify_article.sh | 48 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/verify_article.sh b/verify_article.sh index da407c4..aaf8aa6 100755 --- a/verify_article.sh +++ b/verify_article.sh @@ -141,6 +141,54 @@ else fail "Kein Quellen-Block gefunden (h2/span>Quellen fehlt)" fi +# ── CHECK 14: Dachzeile vorhanden (div unter h1 mit border-bottom) ── +if echo "$BODY" | grep -qP '
' "$FILE" | tail -1 | cut -d: -f1 || echo "0") +if [ "$LAST_H2_LINE" = "0" ]; then + warn "Keine

im Artikel — Read-More-Position nicht prüfbar" +elif [ "$READMORE_LINE" -gt "$LAST_H2_LINE" ]; then + ok "Read-More NACH allen h2 (Zeile $READMORE_LINE > $LAST_H2_LINE)" +else + fail "Read-More VOR letztem h2 (Zeile $READMORE_LINE < $LAST_H2_LINE). Joomla schneidet Inhalte ab!" +fi + +# ── CHECK 17: JEDE Quelle im Quellen-Block hat ───────────── +# Extrahiere Quellen-Block (nach "Quellen" bis ) +SRC_START=$(grep -n 'Quellen' "$FILE" | tail -1 | cut -d: -f1 || echo "") +if [ -n "$SRC_START" ]; then + SRC_LI=$(sed -n "$SRC_START,\$p" "$FILE" | grep -c '
  • ' || true) + SRC_LINKED=$(sed -n "$SRC_START,\$p" "$FILE" | grep -c '
  • .*