Skip to content

Commit 13fe042

Browse files
committed
Redirect /posts/ to /
Opening /posts/ gives a 404, since only the individual posts live below it. Add a page at /posts/ that redirects to the front page. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
1 parent 50d9377 commit 13fe042

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

‎posts.html‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
layout: null
3+
permalink: /posts/
4+
sitemap: false
5+
---
6+
<!DOCTYPE html>
7+
<html lang="en">
8+
<head>
9+
<meta charset="utf-8">
10+
<title>Redirecting&hellip;</title>
11+
<link rel="canonical" href="{{ '/' | relative_url }}">
12+
<meta http-equiv="refresh" content="0; url={{ '/' | relative_url }}">
13+
<meta name="robots" content="noindex">
14+
<script>location.replace("{{ '/' | relative_url }}");</script>
15+
</head>
16+
<body>
17+
<p><a href="{{ '/' | relative_url }}">Click here if you are not redirected.</a></p>
18+
</body>
19+
</html>

0 commit comments

Comments
 (0)