Add donate page, fixup theme compat with hugo 0.145.0 and github action workflow

This commit is contained in:
Jerry Jacobs 2025-05-24 17:40:51 +02:00
parent f1040d6cd8
commit b69ae89bf0
4 changed files with 17 additions and 5 deletions

View File

@ -30,7 +30,7 @@ jobs:
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.135.0
HUGO_VERSION: 0.145.0
steps:
- name: Install Hugo CLI
run: |

12
src/content/donate.md Normal file
View File

@ -0,0 +1,12 @@
---
title: Donate
description: PyroTechny.EU
featured_image: /images/site/about-header.jpg
type: page
menus: main
---
To keep pyrotechnic knowledge easily accessible for future generations we would value any amount of donation via [Donationalerts](https://www.donationalerts.com/r/pyrotechny_eu) or [PayPal](https://www.paypal.com/donate/?hosted_button_id=A2X97VEQMB9YE). Please use the donation comment field if you want to be mentioned on this page, but you can always donate anonymously.
| date | (nick)name | amount |
| ---- | ---------- | ------ |
| - | - | - |

View File

@ -49,7 +49,7 @@ css asset directory we (unless condition below) add to aforementioned slice */}}
{{ if eq .MediaType.SubType "x-scss" "x-sass" "scss" "sass" }}
{{ if hugo.IsExtended }}
{{/* as we cannot concatenate styles of different types, we sass/scss to be transformed to css beforehand */}}
{{ $assets_to_concat = $assets_to_concat | append (. | resources.ToCSS) }}
{{ $assets_to_concat = $assets_to_concat | append (. | css.Sass ) }}
{{ else }}
{{ partial "func/warn" (printf "Processing of stylesheet %s of type %s has been skipped. You need Hugo Extended to process such files." .Name .MediaType.SubType) }}
{{ end }}
@ -66,7 +66,7 @@ css asset directory we (unless condition below) add to aforementioned slice */}}
{{/* We then use toCSS to add sourceMap and minify */}}
{{ $options := dict "enableSourceMap" true "precision" 6 }}
{{ $style = $style | resources.ToCSS $options | minify }}
{{ $style = $style | css.Sass $options | minify }}
{{/* We fingerprint in production for cache busting purposes */}}
{{ if eq (getenv "HUGO_ENV") "production" }}
{{ $style = $style | fingerprint }}

View File

@ -3,7 +3,7 @@
{{ $facebook_href := printf "https://www.facebook.com/sharer.php?u=%s" $url }}
{{ $twitter_href := printf "https://twitter.com/share?url=%s&text=%s" $url $title }}
{{ with site.Social.twitter }}
{{ with .Site.Params.Social.twitter }}
{{ $twitter_href = printf "%s&via=%s" $twitter_href . }}
{{ end }}
{{ $linkedin_href := printf "https://www.linkedin.com/shareArticle?mini=true&url=%s&title=%s" $url $title }}