jekyll-css-naked-day
A Jekyll plugin that automatically strips all CSS from your site on CSS Naked Day (April 9).
What it does
During CSS Naked Day, this plugin:
- Removes
<link rel="stylesheet">tags - Removes
<style>blocks - Removes inline
styleattributes - Adds a banner at the top of each page linking to CSS Naked Day
The time window spans all timezones worldwide (April 9 00:00 UTC+14 to April 10 00:00 UTC-12). Outside this window, the plugin does nothing.
Installation
Add to your Gemfile:
gem 'jekyll-css-naked-day'And to your _config.yml:
plugins:
- jekyll-css-naked-dayThen run bundle install.
This gem depends on nokolexbor for HTML parsing, which will be installed automatically.
Scheduling rebuilds
Since the plugin runs at build time, you'll need to rebuild your site at the start and end of the CSS Naked Day window. If you deploy with GitHub Pages, add cron triggers to your workflow:
on:
schedule:
- cron: '0 10 8 4 *' # Start: April 8 10:00 UTC
- cron: '0 12 10 4 *' # End: April 10 12:00 UTCLicense
MIT