mirror of
https://github.com/He4eT/oddsquat.git
synced 2026-05-04 20:37:22 +00:00
layout: redirect
This commit is contained in:
parent
cf684feafe
commit
d4cef34b4c
2 changed files with 31 additions and 0 deletions
25
src/layouts/redirect.ejs
Normal file
25
src/layouts/redirect.ejs
Normal 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
6
src/pages/post.md
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
layout: redirect
|
||||||
|
redirectTarget: '/post/list/'
|
||||||
|
|
||||||
|
---
|
||||||
Loading…
Add table
Add a link
Reference in a new issue