add .htaccess

This commit is contained in:
Christoph Cullmann 2019-04-13 18:59:02 +02:00
parent 536fa7b3a5
commit dda4846c0d
2 changed files with 5 additions and 0 deletions

2
static/.htaccess Normal file
View file

@ -0,0 +1,2 @@
# own 404 handler
ErrorDocument 404 /404.html

View file

@ -14,5 +14,8 @@ export GIT_COMMIT_SHA=`git rev-parse --verify HEAD`
export GIT_COMMIT_SHA_SHORT=`git rev-parse --short HEAD`
./hugo
# copy .htaccess
cp -f static/.htaccess public
# current date
date -Iseconds