-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: update search settings and redirects
This gives us doc searches, as well as redirects for latest and docs/latest to the actual v0.14 version (until we cut 1.0). Signed-off-by: Spencer Smith <spencer.smith@talos-systems.com>
- Loading branch information
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
## TODO: we should templatize this so hugo spits it out and it always points to latest from config.toml. | ||
## There's a way to do it, but I couldn't get it to work quickly. | ||
## See https://dev.to/faraixyz/setting-a-custom-output-format-in-hugo-for-netlify-or-gitlab-page-s-redirects-file-4dcf | ||
## for what I'm talking about | ||
/docs /v0.14 302 | ||
/docs/latest /v0.14 302 | ||
/docs/latest/* /v0.14/:splat 302 | ||
|
||
/latest /v0.14 302 | ||
/latest/* /v0.14/:splat 302 |