1
0

Nicer headers and empty page for new pages on website

This commit is contained in:
Zef Hemel 2022-07-15 15:46:38 +02:00
parent a0fe5fa1ac
commit d4e141a97c
3 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,8 @@
/fs/*
/fs/_plug/*
Content-Type: application/json
Last-Modified: 0
X-Permission: rw
X-Permission: ro
/fs/*
Content-Type: text/markdown
Last-Modified: 0
X-Permission: rw

View File

@ -1,2 +1,3 @@
/fs /index.json 200
/fs/* /empty.md 200
/* /index.html 200

View File

@ -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
node scripts/generate_fs_list.js > website_build/index.json
echo > website_build/empty.md