From d4e141a97c878ee025b994a84636a4ba4d59be70 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Fri, 15 Jul 2022 15:46:38 +0200 Subject: [PATCH] Nicer headers and empty page for new pages on website --- _headers | 9 +++++++-- _redirects | 1 + scripts/build_website.sh | 3 ++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/_headers b/_headers index 97c10b6..c596b53 100644 --- a/_headers +++ b/_headers @@ -1,3 +1,8 @@ -/fs/* +/fs/_plug/* + Content-Type: application/json Last-Modified: 0 - X-Permission: rw \ No newline at end of file + X-Permission: ro +/fs/* + Content-Type: text/markdown + Last-Modified: 0 + X-Permission: rw diff --git a/_redirects b/_redirects index e01e0a8..c620734 100644 --- a/_redirects +++ b/_redirects @@ -1,2 +1,3 @@ /fs /index.json 200 +/fs/* /empty.md 200 /* /index.html 200 \ No newline at end of file diff --git a/scripts/build_website.sh b/scripts/build_website.sh index 74197c2..efb38b2 100755 --- a/scripts/build_website.sh +++ b/scripts/build_website.sh @@ -9,4 +9,5 @@ cp -r website/* website_build/fs/ cp packages/plugs/dist/* website_build/fs/_plug/ find website_build/fs/ -depth -name "*.md" -exec sh -c 'mv "$1" "${1%.md}"' _ {} \; find website_build/fs/ -depth -name "*.plug.json" -exec sh -c 'mv "$1" "${1%.plug.json}"' _ {} \; -node scripts/generate_fs_list.js > website_build/index.json \ No newline at end of file +node scripts/generate_fs_list.js > website_build/index.json +echo > website_build/empty.md \ No newline at end of file