From c83c1be17d79e563964fb2a1080f46f57186d80c Mon Sep 17 00:00:00 2001 From: alifeee Date: Fri, 29 Dec 2023 02:03:17 +0000 Subject: [PATCH] add 'redirect' --- _data/redirects.yaml | 2 ++ redirect.hbs | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 _data/redirects.yaml create mode 100644 redirect.hbs diff --git a/_data/redirects.yaml b/_data/redirects.yaml new file mode 100644 index 0000000..70f3ef0 --- /dev/null +++ b/_data/redirects.yaml @@ -0,0 +1,2 @@ +- from: "/lipu" + to: "/" \ No newline at end of file diff --git a/redirect.hbs b/redirect.hbs new file mode 100644 index 0000000..9f582fd --- /dev/null +++ b/redirect.hbs @@ -0,0 +1,9 @@ +--- +pagination: + data: redirects + size: 1 + alias: redirect +permalink: /{{redirect.from}}/ +eleventyExcludeFromCollections: true +--- + \ No newline at end of file