try to remove some Hugo cruft from the generated HTML

This commit is contained in:
Ville Lindholm 2024-07-26 13:14:26 +03:00
parent 45d004a594
commit 1dfd1bb7e9
No known key found for this signature in database
2 changed files with 6 additions and 1 deletions

View File

@ -60,6 +60,9 @@ jobs:
--gc \ --gc \
--minify \ --minify \
--baseURL "${{ steps.pages.outputs.base_url }}/" --baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Remove 'powered by...' from all footers
run: find public -type f -name '*.html' -exec perl -0777 -i -pe 's|<footer[^>]*>.*?</footer>|<footer><span>© Ville Lindholm</span></footer>|gs' {} \;
- name: Upload artifact - name: Upload artifact
uses: actions/upload-pages-artifact@v3 uses: actions/upload-pages-artifact@v3
with: with:

View File

@ -2,3 +2,5 @@ baseURL = 'https://vlindhol.github.io/'
languageCode = 'en-us' languageCode = 'en-us'
title = 'Lindholm Software freelance' title = 'Lindholm Software freelance'
theme = 'PaperMod' theme = 'PaperMod'
copyright = '© Ville Lindholm'
disableHugoGeneratorInject = true