hugo-redirect
hugo-redirect copied to clipboard
A theme components to enable easy redirection in Hugo sites
Add it to the `.md` file and include it in the generated output.
I want to be able to redirect /cv to /cv_English.pdf, but redirect /cv/es to /cv_Spanish.pdf Is this possible?
Eg. `https://prag.io/ --> https://prag.io` etc. See https://www.danielmorell.com/guides/htaccess-seo/redirects/https-www-and-trailing-slash
Currently aliasing is natively handled by hugo as a meta-redirect. We could hopefully add aliasing support to the generated files, configurable with an option.
Hopefully exhaustively cover all cases of trailing slashes to cover cases like `/cv/` redirecting both with and without slash. Add a option to configure this.