diff --git a/.gitignore b/.gitignore index 728990d..23bdcca 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,3 @@ /content/entwuerfe/ hugo_stats.json /.hugo_build.lock -Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f10e6e6 --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +#!/home/norbert/.local/bin/make +all: + rm -rf public + hugo --ignoreCache + cat public/404.html | sed s/404/403/ | sed s/403\ Page\ not\ found/Verboten/ > public/403.html + cat public/404.html | sed s/404/401/ | sed s/401\ Page\ not\ found/Nicht\ erlaubt/ > public/401.html + sed -i s/page\ not\ found/Seite\ verboten/ public/403.html + sed -i s/page\ not\ found/Seite\ nicht\ erlaubt/ public/401.html + sed -i s/page\ not\ found/Seite\ nicht\ gefunden/ public/404.html + rm .hugo_build.lock + #rsync -avP --delete public/ draco:html/ + rsync -avP --delete public/ rollcage:docker/nginx/html/