diff options
| author | forever2k38 <forever2k38@noreply.codeberg.org> | 2026-09-07 11:52:17 +0200 |
|---|---|---|
| committer | forever2k38 <forever2k38@noreply.codeberg.org> | 2026-09-07 11:52:17 +0200 |
| commit | d5aadb4d886d0b2f5da8e5af50d1c5e74df08486 (patch) | |
| tree | 38a4f38f29b00be9465cd84edf9412c234b2d262 | |
| parent | afc40b605f0186e32fac245b5ad76af986f3719f (diff) | |
sourcehut migration
| -rw-r--r-- | .build.yml | 14 | ||||
| -rw-r--r-- | .forgejo/workflows/deploy.yaml | 42 | ||||
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | assets/scss/main.scss | 4 | ||||
| -rw-r--r-- | content/blog/njalla/_index.md | 2 | ||||
| -rw-r--r-- | layouts/_default/list.html | 2 |
6 files changed, 23 insertions, 44 deletions
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/ @@ -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" }} - <h1>{{ .Title }}</h1> + <h1 class="title">{{ .Title }}</h1> {{ .Content }} {{ range .Pages }} <h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2> |
