Skip to main content

GitHub release (latest SemVer) python versions on pypi version on pypi Downloads license python test coverage Donate

Pelican Feed Minify

A small Pelican plugin that minifies HTML embedded in RSS and Atom feeds before Pelican serializes those feeds.

The plugin uses minify-html to remove HTML comments and compact the markup. This is useful when comments used in Markdown or reStructuredText source files should not be exposed to feed readers.

Features

  • Removes HTML comments from feed item content and description fields.
  • Minifies HTML in both Atom and RSS feed items.
  • Leaves titles and other feed metadata untouched.
  • Allows summaries only to be displayed in the Atom feeds (allowed only for RSS feeds by Pelican).
  • Performs a detailed validation of the HTML content to check for characters not allowed by the XML 1.0 standard (useful to track errors).
  • Does not modify the HTML files generated for the website or the source Markdown/reStructuredText files.
  • Does not ask minify-html to minify embedded CSS or JavaScript.

Note: This is HTML minification, not just comment removal. Whitespace, attributes, and some character/entity representations may also be normalized by minify-html. Review the output if your articles rely on unusual HTML.

Requirements

  • A Python version supported by both Pelican and minify-html.
  • Pelican 4.5 or newer (uses the namespace-plugin structure).

Installation

This plugin can be installed via:

python -m pip install pelican-feed-minify

Enable the plugin in pelicanconf.py:

PLUGINS = [..., "feed_minify"]

To restrict Atom feeds to summaries only, set the following variable:

ATOM_FEED_SUMMARY_ONLY = True

Tests

Install the test dependencies:

pip install -e ".[dev]"

Run the tests from the repository root:

python -m pytest -v

License

This program is released under the GNU Affero General Public License.

Metadata

Release files for pelican-feed-minify 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pelican-feed-minify 1.0.1
File Size Uploaded Provenance Actions
pelican_feed_minify-1.0.1.tar.gz 6.2 kB Without provenance Details for pelican_feed_minify-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pelican-feed-minify 1.0.1
File Interpreter ABI Platform Actions
pelican_feed_minify-1.0.1-py3-none-any.whl Python 3 none any Details for pelican_feed_minify-1.0.1-py3-none-any.whl

Total release size: 11.0 kB

Release files / pelican_feed_minify-1.0.1.tar.gz

Download URL pelican_feed_minify-1.0.1.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
52a04803aba9debb47408bcfb41dde3d14fd9fd6506179f6f450c76cd48777da
BLAKE2b-256 checksum
How to use checksums
f7bffb4e0c4c3499b310b2cbccd1ab80627c5952ca162079ba3f6f0ad99b6e97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / pelican_feed_minify-1.0.1-py3-none-any.whl

Download URL pelican_feed_minify-1.0.1-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5c087ffa9df80e85868409b97540c86658de5dcec46b3d08addcc5805b33c14
BLAKE2b-256 checksum
How to use checksums
11c1bd87887a3682c75ec3e8273b59eaf87715a38df74975ef8f045f561c81d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for pelican-feed-minify 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page