Skip to content

Commit 20016cf

Browse files
committed
feat(docs): add redirect for Aurelia documentation
Created a new index file to redirect users to the updated Aurelia documentation site. Removed old redirect configuration from `hugo.toml` and added a custom HTML layout for redirection.
1 parent d218cc8 commit 20016cf

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

content/docs/_index.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: "Aurelia Documentation"
3+
layout: redirect
4+
redirect: "https://aurelia-1.gitbook.io/v1-docs"
5+
---

hugo.toml

-6
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ languageCode = "en-us"
33
title = "Aurelia"
44
theme = "aurelia-theme"
55

6-
[[redirects]]
7-
from = "/docs"
8-
to = "https://aurelia-1.gitbook.io/v1-docs"
9-
status = 301
10-
force = true
11-
126
[taxonomies]
137
authors = "authors"
148
tags = "tags"

static/_redirects

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>{{ .Title }} - Redirecting...</title>
5+
<meta charset="utf-8">
6+
<meta http-equiv="refresh" content="0; url={{ .Params.redirect }}">
7+
<link rel="canonical" href="{{ .Params.redirect }}">
8+
<meta name="robots" content="noindex">
9+
</head>
10+
<body>
11+
<h1>Redirecting...</h1>
12+
<p>If you are not redirected automatically, please <a href="{{ .Params.redirect }}">click here</a>.</p>
13+
<script>window.location.href = "{{ .Params.redirect }}";</script>
14+
</body>
15+
</html>

0 commit comments

Comments
 (0)