diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..9de9b14 --- /dev/null +++ b/.htaccess @@ -0,0 +1,84 @@ +RewriteBase / +RewriteEngine On + +AddDefaultCharset utf-8 +AddCharset UTF-8 .css .js .webmanifest +FileETag MTime Size +ServerSignature Off +SetEnvIf Host ^ suppress-error-charset + +AddType image/x-icon .ico +AddType application/manifest+json .webmanifest + +RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] +RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L] +RewriteCond %{ENV:HTTPS} !=on +RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] +RewriteCond %{HTTP_HOST} ^flame.ga$ +RewriteRule ^ https://kaboom.pw/$1 [R=301,L] +RewriteCond %{HTTP_HOST} ^www.flame.ga$ +RewriteRule ^ https://kaboom.pw/$1 [R=301,L] + +ErrorDocument 404 https://kaboom.pw/ +RewriteCond %{REQUEST_FILENAME} -d +RewriteRule . - [R=404] + + +Header set Content-Security-Policy "default-src 'none'; font-src data:; img-src 'self'; manifest-src 'self'; style-src 'self'; upgrade-insecure-requests" +Header set X-Frame-Options "DENY" +Header set X-Xss-Protection "1; mode=block" + + +Header set Referrer-Policy "no-referrer" +Header set Strict-Transport-Security "max-age=63072000; includeSubdomains; preload" +Header set Vary "Accept-Encoding" +Header set X-Content-Type-Options "nosniff" +Header unset Accept-Ranges +Header unset Last-Modified + +RewriteCond %{HTTP:Accept-Encoding} br +RewriteCond %{REQUEST_FILENAME}.br -f +RewriteRule ^(.*)$ $1.br [L] + +RewriteCond %{HTTP:Accept-Encoding} gzip +RewriteCond %{REQUEST_FILENAME}.gz -f +RewriteRule ^(.*)$ $1.gz [L] + +AddEncoding br .br +AddEncoding gzip .gz + + +ForceType "text/css; charset=utf-8" + + + +ForceType image/x-icon + + + +ForceType "text/html; charset=utf-8" + + + +ForceType "text/javascript; charset=utf-8" + + + +ForceType "image/png; charset=utf-8" + + + +ForceType "image/svg+xml; charset=utf-8" + + + +ForceType "text/plain; charset=utf-8" + + + +ForceType "application/manifest+json; charset=utf-8" + + + +ForceType "text/xml; charset=utf-8" + diff --git a/404.md b/404.md deleted file mode 100644 index feef71e..0000000 --- a/404.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -layout: default -title: Oops ---- -# {{ page.title }} -This page does not exist. You may return to the [home page](/). diff --git a/_config.yml b/_config.yml index 2172996..9a7172e 100644 --- a/_config.yml +++ b/_config.yml @@ -7,8 +7,5 @@ exclude: - Gemfile - LICENSE -kramdown: - entity_output: :as_input - sass: style: :compressed diff --git a/_layouts/default.html b/_layouts/default.html index f928047..1dd544f 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -16,14 +16,12 @@ layout: minify - - - - + + -
+
{{ content }}
diff --git a/icons/android-chrome.png b/android-chrome.png similarity index 100% rename from icons/android-chrome.png rename to android-chrome.png diff --git a/icons/apple-touch-icon.png b/apple-touch-icon.png similarity index 100% rename from icons/apple-touch-icon.png rename to apple-touch-icon.png diff --git a/browserconfig.xml b/browserconfig.xml new file mode 100644 index 0000000..af23180 --- /dev/null +++ b/browserconfig.xml @@ -0,0 +1,13 @@ +--- +layout: minify +--- + + + + + + #555555 + + + + diff --git a/build.sh b/build.sh index 5f3762e..7f1f813 100755 --- a/build.sh +++ b/build.sh @@ -1,14 +1,13 @@ #!/bin/bash -cd $HOME/build-websites/kaboom-website/ +cd $HOME/build/kaboom-website/ rm Gemfile.lock -#bundle install -jekyll build --destination $HOME/html/kaboom.pw/ -#if jekyll build --destination $HOME/html/kaboom.pw/; then +bundle install +if bundle exec jekyll build --destination $HOME/html/kaboom.pw/; then cd $HOME/html/kaboom.pw/ - #rm -rf *.br - #rm -rf *.gz - #for file in `find . -type f -name '*'`; do - # $HOME/build-websites/zopfli $file - # $HOME/build-websites/brotli $file - #done -#fi + rm -rf *.br + rm -rf *.gz + for file in `find . -type f -name '*'`; do + $HOME/build/zopfli $file + $HOME/build/brotli $file + done +fi diff --git a/icons/safari-pinned-tab.svg b/icons/safari-pinned-tab.svg deleted file mode 100644 index 65bc7d7..0000000 --- a/icons/safari-pinned-tab.svg +++ /dev/null @@ -1,6 +0,0 @@ ---- -layout: minify ---- - - - diff --git a/index.html b/index.html index 7202175..5e14794 100644 --- a/index.html +++ b/index.html @@ -38,3 +38,4 @@ layout: default Feel free to download the schematics and worlds of the Kaboom.pw server. Worlds reset once a week. + diff --git a/mstile-150x150.png b/mstile-150x150.png new file mode 100644 index 0000000..ec36636 Binary files /dev/null and b/mstile-150x150.png differ diff --git a/safari-pinned-tab.svg b/safari-pinned-tab.svg new file mode 100644 index 0000000..b776ae2 --- /dev/null +++ b/safari-pinned-tab.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/manifest.webmanifest b/site.webmanifest similarity index 100% rename from icons/manifest.webmanifest rename to site.webmanifest