Skip to content

Commit

Permalink
Added Archetype and Layout for simple html redirects to handle changi…
Browse files Browse the repository at this point in the history
…ng URLs
  • Loading branch information
aidik committed Aug 27, 2021
1 parent 624bb7d commit ee267ed
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions archetypes/redirect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
type: "redirect"
targetURL: "new target URL relative or absolute"
slug: "original slug"
---
5 changes: 5 additions & 0 deletions content/SCALE/_R_redir-test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
type: "redirect"
targetURL: "/fuuu/bar/"
slug: "redir-test"
---
6 changes: 6 additions & 0 deletions layouts/redirect/single.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0;URL={{ .Params.targetURL }}">
</head>
</html>

0 comments on commit ee267ed

Please sign in to comment.