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 @@ -
-