From d5aadb4d886d0b2f5da8e5af50d1c5e74df08486 Mon Sep 17 00:00:00 2001 From: forever2k38 Date: Mon, 7 Sep 2026 11:52:17 +0200 Subject: sourcehut migration --- .build.yml | 14 ++++++++++++++ .forgejo/workflows/deploy.yaml | 42 ------------------------------------------ .gitignore | 3 +++ assets/scss/main.scss | 4 ++++ content/blog/njalla/_index.md | 2 +- layouts/_default/list.html | 2 +- 6 files changed, 23 insertions(+), 44 deletions(-) create mode 100644 .build.yml delete mode 100644 .forgejo/workflows/deploy.yaml diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..cbc7118 --- /dev/null +++ b/.build.yml @@ -0,0 +1,14 @@ +image: alpine/latest +packages: + - hugo + - hut +oauth: pages.sr.ht/PAGES:RW +environment: + site: forever2k38.net +tasks: +- package: | + cd $site + hugo + tar -C public -cvz . > ../site.tar.gz +- upload: | + hut pages publish -d $site site.tar.gz diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml deleted file mode 100644 index a34ade0..0000000 --- a/.forgejo/workflows/deploy.yaml +++ /dev/null @@ -1,42 +0,0 @@ -name: Deploy Hugo to Codeberg Pages - -on: - push: - branches: [main] - workflow_dispatch: - -jobs: - deploy: - runs-on: codeberg-tiny - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - submodules: recursive - fetch-depth: 0 - - - name: Setup Hugo - uses: https://github.com/peaceiris/actions-hugo@v3 - with: - hugo-version: "0.164.0" - extended: true - - - name: Setup Dart Sass - run: | - curl -sL https://github.com/sass/dart-sass/releases/download/1.91.0/dart-sass-1.91.0-linux-x64.tar.gz -o /tmp/dart-sass.tar.gz - tar -xzf /tmp/dart-sass.tar.gz -C /tmp - mkdir -p $HOME/.local - mv /tmp/dart-sass $HOME/.local/dart-sass - echo "$HOME/.local/dart-sass" >> $GITHUB_PATH - if [ -n "$FORGEJO_PATH" ]; then echo "$HOME/.local/dart-sass" >> $FORGEJO_PATH; fi - - - name: Build - run: hugo --gc --minify --baseURL https://forever2k38.net/ - - - name: Deploy to Codeberg Pages - uses: https://codeberg.org/git-pages/action@v2 - with: - site: https://forever2k38.net/ - server: codeberg.page - token: ${{ forgejo.token }} - source: public/ diff --git a/.gitignore b/.gitignore index 86c95ef..f516eff 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,6 @@ hugo.linux # Temporary lock file while building /.hugo_build.lock + +# sr.ht +site.tar.gz diff --git a/assets/scss/main.scss b/assets/scss/main.scss index be33908..67b0d8d 100644 --- a/assets/scss/main.scss +++ b/assets/scss/main.scss @@ -63,3 +63,7 @@ code { .content * { padding: 0.5rem 0; } + +.smaller-title { + font-size: 3rem; +} diff --git a/content/blog/njalla/_index.md b/content/blog/njalla/_index.md index a75392f..875284c 100644 --- a/content/blog/njalla/_index.md +++ b/content/blog/njalla/_index.md @@ -1,5 +1,5 @@ +++ -title = "my experience with njalla" +title = "njalla" date = "2026-09-05" +++ diff --git a/layouts/_default/list.html b/layouts/_default/list.html index c2e7875..696fb46 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,5 +1,5 @@ {{ define "main" }} -

{{ .Title }}

+

{{ .Title }}

{{ .Content }} {{ range .Pages }}

{{ .LinkTitle }}

-- cgit v1.3