From 8300a47c92506a87a41891d4965a93e4e4836158 Mon Sep 17 00:00:00 2001 From: Ludger Sicking Date: Mon, 10 Aug 2026 15:02:17 +0200 Subject: [PATCH 1/5] =?UTF-8?q?papermod=20theme=20nutzt=20"mainSections"?= =?UTF-8?q?=20f=C3=BCr=20Startseite?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit wenn HomePage dann suche in "mainSections" (hugo.yaml). Da auf der Startseite gar keine "Sections" (Artikel) erscheinen sollen, ist die Liste "mainSections" leer. Eine Alternative wäre alle Artikel mit "hiddenInHomeList: true" zu versehen. --- .woodpecker/build_and_copy_website.yaml | 2 +- Website/hugo.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.woodpecker/build_and_copy_website.yaml b/.woodpecker/build_and_copy_website.yaml index 6659041..1132bb1 100644 --- a/.woodpecker/build_and_copy_website.yaml +++ b/.woodpecker/build_and_copy_website.yaml @@ -12,7 +12,7 @@ steps: - date -I'seconds' - name: build_by_hugo - image: alpine:3.23 # PaperMod (Stand 2026-05) braucht Hugo >= 0.146; alpine:3.23 liefert 0.152.2 + image: alpine:3.24 # PaperMod (Stand 2026-05) braucht Hugo >= 0.146; alpine:3.24 liefert 0.160.1 commands: - date -I'seconds' - cat /etc/alpine-release diff --git a/Website/hugo.yaml b/Website/hugo.yaml index 30bcea5..be0b493 100644 --- a/Website/hugo.yaml +++ b/Website/hugo.yaml @@ -72,6 +72,7 @@ Pagination: Params: ShowReadingTime: false ShowTags: true # ← Tags unter Beiträgen anzeigen + mainSections: [] # ← keine Blogartikel auf Startseite, vgl. list.html Zeile 43f taxonomies: tag: tags # ← Taxonomie aktivieren From 5b8e0623095288e2359b23e26b0201f0f6d74f0b Mon Sep 17 00:00:00 2001 From: Ludger Sicking Date: Mon, 10 Aug 2026 15:45:54 +0200 Subject: [PATCH 2/5] pimp build workflow... and add workflow for testing run pipeline manual in woodpecker --- .woodpecker/build_and_copy_website.yaml | 5 +-- .woodpecker/build_and_test_website.yaml | 50 +++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 3 deletions(-) create mode 100644 .woodpecker/build_and_test_website.yaml diff --git a/.woodpecker/build_and_copy_website.yaml b/.woodpecker/build_and_copy_website.yaml index 1132bb1..cbf52b8 100644 --- a/.woodpecker/build_and_copy_website.yaml +++ b/.woodpecker/build_and_copy_website.yaml @@ -20,12 +20,11 @@ steps: - hugo version - mkdir Website/PROD - - hugo -s Website -d PROD --logLevel debug + - hugo -s Website -d PROD --logLevel error - ls -la Website/PROD/index.html - - if grep -E "Team vollständig" Website/PROD/index.html; then echo "Blog Teamseite"; else echo "Webseite Startseite"; fi + - if grep -E "Team vollständig" Website/PROD/index.html; then echo "Fehlerhafte Startseite! Artikel vorhanden..."; else echo "Startseite OK"; fi - echo $? - - grep -E "Du hast sogar schon mal selbst Materialien erstellt" Website/PROD/index.html - name: copy_to_server diff --git a/.woodpecker/build_and_test_website.yaml b/.woodpecker/build_and_test_website.yaml new file mode 100644 index 0000000..48a678b --- /dev/null +++ b/.woodpecker/build_and_test_website.yaml @@ -0,0 +1,50 @@ +when: + - branch: + include: * + exclude: [main] + event: manual + path: + include: ['Website/**'] + on_empty: false + +steps: + - name: TEST-log_start_time + image: alpine + commands: + - date -I'seconds' + + - name: TEST-build_and_test_site + image: alpine:3.24 # PaperMod (Stand 2026-05) braucht Hugo >= 0.146; alpine:3.24 liefert 0.160.1 + commands: + - date -I'seconds' + - cat /etc/alpine-release + - apk add --no-cache hugo + - hugo version + - apk add --no-cache curl + + - mkdir Website/PROD + - hugo -s Website -d PROD --logLevel debug + - echo 'curl 1-> ' + - curl -s http://localhost:1313/de/ | grep -A 5 -B 5 "article\|post\|Post" | head -80) + - echo 'curl 2-> ' + - curl -s http://localhost:1313/de/ 2>/dev/null | grep -o '' | head -5 | cut -c1-200 + - echo 'curl 3-> ' + - curl -s http://localhost:1313/ | grep -oP '' | head -20 + - echo 'curl 4-> ' + - curl -s http://localhost:1313/blog/ | grep -i "article\|interview\|reliGlobal\|post-entry" | head -10 + + - echo " -- -- -- -- -- **** -- -- -- -- --" + - echo "Test auf Artikel (entry) auf Startseite" + - echo 'curl 5-> ' + - curl -s http://localhost:1313/ | grep -A 5 -B 5 -E "class.+entry-" | head -25 + - echo " -- -- -- -- -- **** -- -- -- -- --" + + - ls -la Website/PROD/index.html + - if grep -E "Team vollständig" Website/PROD/index.html | grep -v -E "meta .+:description" ; then echo "Fehlerhafte Startseite! Artikel vorhanden..."; else echo "Startseite OK"; fi + - echo $? + - grep -E "Du hast sogar schon mal selbst Materialien erstellt" Website/PROD/index.html + + - name: TEST-log_end_time + image: alpine + commands: + - date -I'seconds' From d3b50fe5544daa46d1b98b8605c645ff98bf1a6c Mon Sep 17 00:00:00 2001 From: Ludger Sicking Date: Mon, 10 Aug 2026 16:01:17 +0200 Subject: [PATCH 3/5] Woodpecker konformes YAML > "note that a pattern starting with * should be put between quotes" > https://woodpecker-ci.org/docs/usage/workflow-syntax#branch --- .woodpecker/build_and_test_website.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker/build_and_test_website.yaml b/.woodpecker/build_and_test_website.yaml index 48a678b..51ddb48 100644 --- a/.woodpecker/build_and_test_website.yaml +++ b/.woodpecker/build_and_test_website.yaml @@ -1,6 +1,6 @@ when: - branch: - include: * + include: "*" exclude: [main] event: manual path: From 99e0168e4d7816f8f7f273581dc3e153e2f1434b Mon Sep 17 00:00:00 2001 From: Ludger Sicking Date: Mon, 10 Aug 2026 16:07:18 +0200 Subject: [PATCH 4/5] versuchen wirs mal so --- .woodpecker/build_and_test_website.yaml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.woodpecker/build_and_test_website.yaml b/.woodpecker/build_and_test_website.yaml index 51ddb48..8e5a9c7 100644 --- a/.woodpecker/build_and_test_website.yaml +++ b/.woodpecker/build_and_test_website.yaml @@ -1,11 +1,5 @@ when: - - branch: - include: "*" - exclude: [main] - event: manual - path: - include: ['Website/**'] - on_empty: false + - event: manual steps: - name: TEST-log_start_time From 2ed715495d64d0b24e92df0e2863b103164fae63 Mon Sep 17 00:00:00 2001 From: Ludger Sicking Date: Mon, 10 Aug 2026 16:11:14 +0200 Subject: [PATCH 5/5] copy und paste fehler :-/ --- .woodpecker/build_and_test_website.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker/build_and_test_website.yaml b/.woodpecker/build_and_test_website.yaml index 8e5a9c7..16fdb20 100644 --- a/.woodpecker/build_and_test_website.yaml +++ b/.woodpecker/build_and_test_website.yaml @@ -19,7 +19,7 @@ steps: - mkdir Website/PROD - hugo -s Website -d PROD --logLevel debug - echo 'curl 1-> ' - - curl -s http://localhost:1313/de/ | grep -A 5 -B 5 "article\|post\|Post" | head -80) + - curl -s http://localhost:1313/de/ | grep -A 5 -B 5 "article\|post\|Post" | head -80 - echo 'curl 2-> ' - curl -s http://localhost:1313/de/ 2>/dev/null | grep -o '' | head -5 | cut -c1-200 - echo 'curl 3-> '