From 1dfd1bb7e92ae99af5a15e93757aa613f0325671 Mon Sep 17 00:00:00 2001 From: Ville Lindholm Date: Fri, 26 Jul 2024 13:14:26 +0300 Subject: [PATCH] try to remove some Hugo cruft from the generated HTML --- .github/workflows/hugo.yaml | 5 ++++- hugo.toml | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/hugo.yaml b/.github/workflows/hugo.yaml index 3511c3b..366dbb8 100644 --- a/.github/workflows/hugo.yaml +++ b/.github/workflows/hugo.yaml @@ -59,7 +59,10 @@ jobs: hugo \ --gc \ --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|]*>.*?||gs' {} \; + - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: diff --git a/hugo.toml b/hugo.toml index 8e38f69..4168600 100644 --- a/hugo.toml +++ b/hugo.toml @@ -2,3 +2,5 @@ baseURL = 'https://vlindhol.github.io/' languageCode = 'en-us' title = 'Lindholm Software freelance' theme = 'PaperMod' +copyright = '© Ville Lindholm' +disableHugoGeneratorInject = true