From e568418a792f772533694bc96e0bdf1aeed5370c Mon Sep 17 00:00:00 2001 From: June Date: Sat, 8 Feb 2025 22:45:39 +0100 Subject: [PATCH 1/3] testing: fake event --- content/blog/2025/fake-event/index.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 content/blog/2025/fake-event/index.md diff --git a/content/blog/2025/fake-event/index.md b/content/blog/2025/fake-event/index.md new file mode 100644 index 0000000..6df7d36 --- /dev/null +++ b/content/blog/2025/fake-event/index.md @@ -0,0 +1,16 @@ +--- +categories: event +title: 'fake event' +date: '2025-02-28T19:00:00+01:00' # date of the event +publishDate: '2025-02-10T20:00:00+01:00' # when to publish +draft: false +location: Z9 +authors: + - foobar +--- + +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim aeque doleamus animo, cum corpore dolemus, fieri tamen permagna accessio potest, si aliquod aeternum et infinitum impendere malum nobis opinemur. Quod idem licet transferre in voluptatem, ut postea variari voluptas distinguique possit, augeri amplificarique non possit. At etiam Athenis, ut e patre audiebam facete et urbane. + +Ullus investigandi veri, nisi inveneris, et quaerendi defatigatio turpis est, cum esset accusata et vituperata ab Hortensio. Qui liber cum et mortem contemnit, qua qui est imbutus quietus esse numquam potest. Praeterea bona praeterita grata recordatione renovata delectant. Est autem situm in nobis ut et voluptates et dolores nasci fatemur e corporis voluptatibus et doloribus -- itaque concedo, quod. + +Ullus investigandi veri, nisi inveneris, et quaerendi defatigatio turpis est, cum esset accusata et vituperata ab Hortensio. Qui liber cum et mortem contemnit, qua qui est imbutus quietus esse numquam potest. Praeterea bona praeterita grata recordatione renovata delectant. Est autem situm in nobis ut et voluptates et dolores nasci fatemur e corporis voluptatibus et doloribus -- itaque concedo, quod modo dicebas, cadere causa, si qui. From b453a8e3487e260932632ddde28a7f29a7b050af Mon Sep 17 00:00:00 2001 From: June Date: Sat, 8 Feb 2025 22:54:27 +0100 Subject: [PATCH 2/3] make staging CI show blog posts with future publish date Co-authored-by: Dario Suggested-by: Dario --- .forgejo/workflows/deploy.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index c317265..25ff1e8 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -33,16 +33,19 @@ jobs: with: fetch-depth: 0 # pull full history for page lastmod by git commit date - - name: Patch baseURL (staging only) + - name: Build website - prod + run: | + ./fetch-calendar.sh + hugo + + - name: Build website - staging if: github.ref_name != 'main' run: | sed -i "s#baseURL = 'https://hamburg.ccc.de/'#baseURL = 'https://staging.hamburg.ccc.de/pr${{ github.event.pull_request.number }}/'#" hugo.toml sed -i "s#index = true#index = false#" hugo.toml sed -i "s#follow = true#follow = false#" hugo.toml - - name: Build website - run: | ./fetch-calendar.sh - hugo + hugo --buildFuture - name: Deploy - Prepare keys if: github.event_name == 'push' || github.event_name == 'pull_request' || github.event_name == 'schedule' From e8ab1ddc81a37029497feda916d5727ba6108f05 Mon Sep 17 00:00:00 2001 From: June Date: Sat, 8 Feb 2025 22:54:27 +0100 Subject: [PATCH 3/3] make staging CI show blog posts with future publish date Co-authored-by: Dario Suggested-by: Dario --- .forgejo/workflows/deploy.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index c317265..25ff1e8 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -33,16 +33,19 @@ jobs: with: fetch-depth: 0 # pull full history for page lastmod by git commit date - - name: Patch baseURL (staging only) + - name: Build website - prod + run: | + ./fetch-calendar.sh + hugo + + - name: Build website - staging if: github.ref_name != 'main' run: | sed -i "s#baseURL = 'https://hamburg.ccc.de/'#baseURL = 'https://staging.hamburg.ccc.de/pr${{ github.event.pull_request.number }}/'#" hugo.toml sed -i "s#index = true#index = false#" hugo.toml sed -i "s#follow = true#follow = false#" hugo.toml - - name: Build website - run: | ./fetch-calendar.sh - hugo + hugo --buildFuture - name: Deploy - Prepare keys if: github.event_name == 'push' || github.event_name == 'pull_request' || github.event_name == 'schedule'