try to remove some Hugo cruft from the generated HTML
This commit is contained in:
parent
45d004a594
commit
1dfd1bb7e9
5
.github/workflows/hugo.yaml
vendored
5
.github/workflows/hugo.yaml
vendored
@ -59,7 +59,10 @@ jobs:
|
|||||||
hugo \
|
hugo \
|
||||||
--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:
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user