layout: redirect

This commit is contained in:
He4eT 2020-10-31 03:22:24 +05:00
commit d4cef34b4c
2 changed files with 31 additions and 0 deletions

25
src/layouts/redirect.ejs Normal file
View file

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta
name="description"
content="Redirect to '<%= page.redirectTarget %>'">
<meta
http-equiv="Refresh"
content="0; URL=<%= page.redirectTarget %>">
<title>
<%= 'Redirect / ' + site.title %>
</title>
</head>
<body>
<main>
Redirect to
<a
style="color: inherit;"
href="<%= page.redirectTarget %>">
<%= page.redirectTarget %>
</a>
</main>
</body>
</html>

6
src/pages/post.md Normal file
View file

@ -0,0 +1,6 @@
---
layout: redirect
redirectTarget: '/post/list/'
---