No release in over 3 years
A Jekyll plugin that removes all stylesheets, style blocks, and inline styles during CSS Naked Day (April 9), spanning all timezones worldwide.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>= 3.0, < 5.0
 Project Readme

jekyll-css-naked-day

Gem Version

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 style attributes
  • 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-day

Then 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 UTC

License

MIT