Skip to content

Commit

Permalink
feat: add redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsenta committed Sep 15, 2023
1 parent 21d62bf commit ff0dee8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions www/content/tests/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Tests
redirectsTo: /current
---
6 changes: 6 additions & 0 deletions www/themes/conformance/layouts/partials/head.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
{{ $styles := resources.Get "style.css" }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}">

{{ with .Params.RedirectsTo }}
<meta http-equiv="refresh" content="0; url={{ . | absURL }}"/>
{{ end }}

{{ .Params.RedirectsTo }}

0 comments on commit ff0dee8

Please sign in to comment.