From d4683c4c213d5da9bf43c99f1860f2312a9dcf92 Mon Sep 17 00:00:00 2001 From: Madison Rye Progress Date: Sun, 15 Mar 2026 16:56:33 -0700 Subject: [PATCH] Update maddybook, use gitea for deploys --- .gitea/workflows/deploy.yaml | 42 ++++++++++++++++++++++++++++++++++++ .gitignore | 2 ++ config.toml | 2 +- content/_index.md | 19 +--------------- data/works.yml | 23 ++++++++++++++++++++ layouts/partials/head.html | 37 ------------------------------- layouts/partials/header.html | 3 --- static/wildness.css | 4 ++++ themes/maddybook | 2 +- 9 files changed, 74 insertions(+), 60 deletions(-) create mode 100644 .gitea/workflows/deploy.yaml create mode 100644 data/works.yml delete mode 100644 layouts/partials/head.html delete mode 100644 layouts/partials/header.html diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..8c02d33 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,42 @@ +name: Deploy +run-name: ${{ gitea.actor }} is deploying ${{ gitea.repository }} +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + container: + image: docker.gitea.com/runner-images:ubuntu-latest + volumes: + - /opt/hugo/wildness.makyo.ink:/opt/hugo/wildness.makyo.ink + env: + DART_SASS_VERSION: 1.98.0 + steps: + - name: Check out repo + uses: actions/checkout@v6 + with: + submodules: 'true' + + - name: Install Hugo + uses: peaceiris/actions-hugo@v3 + with: + hugo-version: '0.157.0' + extended: true + + - name: Install Dart Sass + run: | + curl -LJO https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz \ + && tar -xf dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz \ + && cp -r dart-sass/* /usr/local/bin \ + && rm -rf dart-sass* \ + && sass --embedded --version + + - name: Build site + run: | + hugo build --gc --minify --baseURL https://wildness.makyo.ink --destination /opt/hugo/wildness.makyo.ink + + - name: Set permissions + run: chown -R www-data:www-data /opt/hugo/wildness.makyo.ink diff --git a/.gitignore b/.gitignore index 2a8645f..421e603 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ .hugo_build.lock +public +resources/_gen diff --git a/config.toml b/config.toml index 7568106..6af3ab4 100644 --- a/config.toml +++ b/config.toml @@ -5,7 +5,7 @@ theme = 'maddybook' paginatePath = "" [permalinks] - post = '/:filename/' + post = '/:contentbasename/' [params] author = 'Madison Scott-Clary' diff --git a/content/_index.md b/content/_index.md index f3ce715..bceb9ab 100644 --- a/content/_index.md +++ b/content/_index.md @@ -30,24 +30,7 @@ Much of the book is available to read for free online if you are unable to affor ## Contents -* [Jump](/jump) - - Some folks were just built to jump. What do you do when that gets to be too much? -* [Limerent Object](/limerent-object) - - Dee Kimana, an ex-seminarian coyote, is in love. Maybe. Perhaps? His constant doubts plague him, and as he strives to journal his way towards greater understanding of himself and his emotions, he delves deeper and deeper into the past. -* [Gigs](/gigs) - - The gig economy, while useful for providing some income to those in need, comes with its own downfalls and dangers, as Winter soon finds. -* Sorting Laundry - - It's weird what you remember from childhood, isn't it? Almost as weird as what brings those memories to the surface. -* Morning Of - - Surgery and airports --- two places where you give yourself into your trust in professionals. But where, exactly, does that point lie? -* [Of Foxes and Milkshakes](/of-foxes-and-milkshakes) - - Two foxes, one vanilla-flavored kiss. +{{< works corpus="works" >}} ## Praise diff --git a/data/works.yml b/data/works.yml new file mode 100644 index 0000000..8bb760b --- /dev/null +++ b/data/works.yml @@ -0,0 +1,23 @@ +- title: Jump + url: /jump + description: Some folks were just built to jump. What do you do when that gets to be too much? + +- title: Limerent Object + url: /limerent-object + description: Dee Kimana, an ex-seminarian coyote, is in love. Maybe. Perhaps? His constant doubts plague him, and as he strives to journal his way towards greater understanding of himself and his emotions, he delves deeper and deeper into the past. + +- title: Gigs + url: /gigs + description: The gig economy, while useful for providing some income to those in need, comes with its own downfalls and dangers, as Winter soon finds. + +- title: Sorting Laundry + url: /sorting-laundry + description: It’s weird what you remember from childhood, isn’t it? Almost as weird as what brings those memories to the surface. + +- title: Morning Of + url: /morning-of + description: Surgery and airports — two places where you give yourself into your trust in professionals. But where, exactly, does that point lie? + +- title: Of Foxes and Milkshakes + url: /of-foxes-and-milkshakes + description: Two foxes, one vanilla-flavored kiss. diff --git a/layouts/partials/head.html b/layouts/partials/head.html deleted file mode 100644 index f82f26f..0000000 --- a/layouts/partials/head.html +++ /dev/null @@ -1,37 +0,0 @@ - - {{ if .Title }}{{ .Title }} | {{ end }}A Wildness of the Heart by Madison Scott-Clary - - - - - {{ range .Site.Params.customCSS }} - - {{ end }} - - - - - - - - - - - - - - - - - - - diff --git a/layouts/partials/header.html b/layouts/partials/header.html deleted file mode 100644 index d0c7a18..0000000 --- a/layouts/partials/header.html +++ /dev/null @@ -1,3 +0,0 @@ -
-

{{ .Site.Title }}Limerent Object and other stories

-
diff --git a/static/wildness.css b/static/wildness.css index ccaabef..3319725 100644 --- a/static/wildness.css +++ b/static/wildness.css @@ -8,3 +8,7 @@ header, footer, .title ul li p:first-of-type, ul.pagination, h1, h2 { font-family: "Tom's New Roman", serif; } + +.works .author { + display: none; +} diff --git a/themes/maddybook b/themes/maddybook index d675998..44ebac1 160000 --- a/themes/maddybook +++ b/themes/maddybook @@ -1 +1 @@ -Subproject commit d67599865d19f00353c3ffbeb513cf108b3d0442 +Subproject commit 44ebac130c6f0bd1cc1346be5e5a5761c493f72b