From b47fd5473c8f253e0a7f5cfada486c7ec08f0e31 Mon Sep 17 00:00:00 2001 From: Tommi Date: Fri, 25 Oct 2024 21:35:47 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=97=EF=B8=8F=20Add=20`redirect=5Fto`?= =?UTF-8?q?=20functionality?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add functionality to redirect from an internal link to an external URL. --- ournet/_data/redirect_to.csv | 1 + ournet/redirect_to.liquid | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 ournet/_data/redirect_to.csv create mode 100644 ournet/redirect_to.liquid diff --git a/ournet/_data/redirect_to.csv b/ournet/_data/redirect_to.csv new file mode 100644 index 0000000..f85ad7e --- /dev/null +++ b/ournet/_data/redirect_to.csv @@ -0,0 +1 @@ +from,to diff --git a/ournet/redirect_to.liquid b/ournet/redirect_to.liquid new file mode 100644 index 0000000..1f8c33f --- /dev/null +++ b/ournet/redirect_to.liquid @@ -0,0 +1,21 @@ +--- +pagination: + data: redirect_to + size: 1 + alias: redirect + addAllPagesToCollections: false +permalink: '{{ redirect.from }}' +eleventyExcludeFromCollections: true +layout: null +--- + + + + Redirect to {{ redirect.to }} + + + + +

Redirecting to {{ redirect.to }}

+

Click here if you are not being redirected.

+