All tags » python

1-15 / 31 articles

Thumbnail for Self-Hosted Analytics for Pelican: From Tracker to Frontmatter

A complete self-hosted analytics pipeline for a Pelican static site: a PHP tracker with bot detection, a SQLite view that hides pollution, a retroactive backfill tool, and a deterministic two-feed sync that keeps counts in markdown frontmatter. No third-party provider, no client-side telemetry,...... Read More


Keywords: pelican self-hosted analytics sqlite php python bot detection static site frontmatter deterministic publishing
Thumbnail for Replaying CSS Builds: A Recipe-Based Manager for Pelican Themes

A deep dive into a Python tool that combines, purges, minifies, and redeploys CSS bundles for Pelican themes using a recipe-based pipeline. Learn how it records every build step, automatically replays the entire chain, and drops the result into the output folder – no full site rebuild required.... Read More


Keywords: pelican css build tools web performance purgecss csso automation deterministic workflows static site python
Thumbnail for Jinja2 to PDF: Modern HTML-to-PDF Generation with WeasyPrint

A production-grade walkthrough for generating PDFs from Jinja2 templates using WeasyPrint. This article covers template design, CSS print styling, page layout control, and integration into automated document pipelines — replacing deprecated wkhtmltopdf workflows with a modern, reproducible...... Read More


Keywords: jinja2 weasyprint pdf generation python html to pdf wkhtmltopdf alternative document automation css print templating reproducible documents
Thumbnail for From Plain Text to HTML in Vim – Using Python Filters for Instant Markup

Learn how to extend the RunScriptFilter pattern to turn plain text into HTML instantly inside Vim. Convert lists into styled

  • tags, wrap paragraphs in

    , generate