Skip to content

Commit

Permalink
feat: add redirect layout template
Browse files Browse the repository at this point in the history
- Add new redirect.html layout for handling page redirections
- Include canonical link, JavaScript redirect, meta refresh
- Provide fallback link for manual navigation

Signed-off-by: Chun-Yu Lee (Mat) <[email protected]>
  • Loading branch information
matlinuxer2 committed Nov 1, 2024
1 parent 95d296f commit 64667e0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions _layouts/redirect.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en-US">
<meta charset="utf-8">
<title>Redirecting&hellip;</title>
<link rel="canonical" href="{{ page.redirect.to }}">
<script>location="{{ page.redirect.to }}"</script>
<meta http-equiv="refresh" content="0; url={{ page.redirect.to }}">
<h1>Redirecting&hellip;</h1>
<a href="{{ page.redirect.to }}">Click here if you are not redirected.</a>
</html>

0 comments on commit 64667e0

Please sign in to comment.