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: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
HUGO_VERSION: 0.135.0 HUGO_VERSION: 0.145.0
steps: steps:
- name: Install Hugo CLI - name: Install Hugo CLI
run: | 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 eq .MediaType.SubType "x-scss" "x-sass" "scss" "sass" }}
{{ if hugo.IsExtended }} {{ if hugo.IsExtended }}
{{/* as we cannot concatenate styles of different types, we sass/scss to be transformed to css beforehand */}} {{/* 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 }} {{ 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) }} {{ 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 }} {{ 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 */}} {{/* We then use toCSS to add sourceMap and minify */}}
{{ $options := dict "enableSourceMap" true "precision" 6 }} {{ $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 */}} {{/* We fingerprint in production for cache busting purposes */}}
{{ if eq (getenv "HUGO_ENV") "production" }} {{ if eq (getenv "HUGO_ENV") "production" }}
{{ $style = $style | fingerprint }} {{ $style = $style | fingerprint }}
@ -75,4 +75,4 @@ css asset directory we (unless condition below) add to aforementioned slice */}}
{{ $main_style = $style }} {{ $main_style = $style }}
{{ end }} {{ end }}
{{ return $main_style }} {{ return $main_style }}

View File

@ -3,7 +3,7 @@
{{ $facebook_href := printf "https://www.facebook.com/sharer.php?u=%s" $url }} {{ $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 }} {{ $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 . }} {{ $twitter_href = printf "%s&via=%s" $twitter_href . }}
{{ end }} {{ end }}
{{ $linkedin_href := printf "https://www.linkedin.com/shareArticle?mini=true&url=%s&title=%s" $url $title }} {{ $linkedin_href := printf "https://www.linkedin.com/shareArticle?mini=true&url=%s&title=%s" $url $title }}