Skip to content

A CSS minifier filter for inline styles in the Pelican static site generator

License

Notifications You must be signed in to change notification settings

boidolr/pelican-cssmin

Repository files navigation

pelican-cssmin: A Plugin for Pelican

tag python Build Status pre-commit

Pelican plugin adding rcssmin as a template filter to handle inline styles. No bundling or removal of redundant properties is performed.

Installation

This plugin can be installed via:

python -m pip install git+https://github.com/boidolr/pelican-cssmin.git@main

As long as you have not explicitly added a `PLUGINS` setting to your Pelican settings file, then the newly-installed plugin should be automatically detected and enabled. Otherwise, you must add `cssmin` to your existing `PLUGINS` list. For more information, please see the [How to Use Plugins](https://docs.getpelican.com/en/latest/plugins.html#how-to-use-plugins) documentation.

Usage

<style>
{%- filter cssmin %}
    {% include "main.css" %}
{% endfilter -%}
</style>

License

This project is licensed under the MIT license.

About

A CSS minifier filter for inline styles in the Pelican static site generator

Resources

License

Stars

Watchers

Forks