From c23b43342c9eaaa980b2823f56d8252b052ce4d0 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Wed, 8 Jul 2026 02:18:53 -0500 Subject: [PATCH] WIP: finished implementation of Netlify _redirects TBD will be caddy, not sure whether this is actually a good idea because including a Caddy file directly from GitHub Actions accessible job output might be a config injection risk. --- hugo.yaml | 10 +++++----- layouts/{home.REDIR => home.redirects} | 0 2 files changed, 5 insertions(+), 5 deletions(-) rename layouts/{home.REDIR => home.redirects} (100%) diff --git a/hugo.yaml b/hugo.yaml index c7bee03..36be44a 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -24,19 +24,19 @@ outputs: home: - html - rss - - REDIR + - redirects outputFormats: # https://honnef.co/articles/generating-netlify-_redirects-from-hugo/ - REDIR: - mediaType: text/caddy + redirects: baseName: _redirects isPlainText: true - notAlternative: true + mediaType: text/redirects + root: true mediaTypes: # https://honnef.co/articles/generating-netlify-_redirects-from-hugo/ - text/caddy: + text/redirects: delimeter: "" privacy: diff --git a/layouts/home.REDIR b/layouts/home.redirects similarity index 100% rename from layouts/home.REDIR rename to layouts/home.redirects