bin/plaintext.sh: Add 301 redirect Signed-off-by: Anirudh Oppiliappan <x@icyphox.sh>
Anirudh Oppiliappan x@icyphox.sh
Wed, 19 Feb 2020 19:27:02 +0530
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
bin/plaintext.sh
→
bin/plaintext.sh
@@ -15,7 +15,7 @@ no_ext="${base%.*}"
[ "$base" != "_index.md" ] && { pandoc --quiet -s -f "markdown+gutenberg" \ "$p" -o "pages/txt/$no_ext.txt" - printf '%s\n' "/txt/$no_ext.txt /txt/$no_ext" >> _redirects + printf '%s\n' "/txt/$no_ext.txt /txt/$no_ext 301" >> _redirects } done