From 2c7223633c9859e1e0dd5528ea56d985537b8da1 Mon Sep 17 00:00:00 2001 From: Jan-Lukas Else Date: Fri, 3 Apr 2020 12:41:58 +0200 Subject: [PATCH] Custom changes --- README.md | 46 +--------------------------------------------- go.mod | 4 ++-- 2 files changed, 3 insertions(+), 47 deletions(-) diff --git a/README.md b/README.md index a81f6cf..7e7d6ce 100644 --- a/README.md +++ b/README.md @@ -1,45 +1 @@ -# Caddy redirects for Hugo - -Generate a redirects file compatible with the [`http.redir`](https://caddyserver.com/v1/docs/redir) plugin from Caddy. - -## Usage - -Add the module import to your Hugo config file: - -```yaml -module: - imports: - # other imports - - path: github.com/hacdias/hugo-caddy-redirs -``` - -Then enable the output file for home: - -```yaml -# Optional: disable the generation of HTML aliases. -disableAliases: true - -# Mandatory -outputs: - home: - - html # Default - - rss # Default - - redir -``` - -This will create a `redirects.txt` file on the root of your website. Now you can -add a rule to your Caddy configuration to use this file as the 301 redirects: - -``` -redir 301 { - import /the/public/path/redirects.txt -} -``` - -## Thanks - -Thanks to @jlelse for the improvement on adding the version with and without the trailing slash. - -## License - -MIT +This is just a copy of [this original repo](https://github.com/hacdias/hugo-caddy-redirs). \ No newline at end of file diff --git a/go.mod b/go.mod index ad30554..ce91060 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/hacdias/hugo-caddy-redirs +module git.jlel.se/jlelse/hugo-caddy-redirs -go 1.13 +go 1.14