Skip to content
A barebone Kirby 3 plugin to temporarily disable a website for the Global Climate Strike on 20 Sep 2019.
HTML PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE.md
README.md
composer.json
index.php
placeholder.html

README.md

Kirby 3 Climatestrike plugin

A barebone Kirby 3 plugin to temporarily disable a website for the Global Climate Strike on 20 September 2019.

The plugin disables the entire website and returns a placeholder page along with HTTP code 503 ("Service not available") to avoid negative impact on SEO. It further provides a means to keep alive legally required URLs, such as the Impressum (for German sites) or privacy policy.

Inspired by digital.globalclimatestrike.net, but free from external dependencies, JavaScript, and tracking. More background info on my blog.

Installation and setup

Download and copy this repository to /site/plugins/kirby3-climatestrike.

To set up what pages should remain reachable, edit the array $keepalive in index.php (e.g. all legally required pages) and adjust the footer links in placeholder.html accordingly.

Optional: For designing your own landing page, adjust the HTML/CSS of placeholder.html; you may consider taking inspiration and using visuals from globalclimatestrike.net.

Testing: Change the variable $strikedate to today's date; depending on your server setup, the dated used might be your local time or UTC.

Set a reminder on your calendar to remove the plugin on or after 21 Sep (keep your site setup clean).

License

Kirby 3 Climatestrike is open-sourced software licensed under the MIT license. It is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment.

Copyright © 2019 Sebastian Greger

It is discouraged to use this plugin in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.

You can’t perform that action at this time.