title: Bloggy
Markdown lovers write
Python roots, JavaScript sparks
Styles without limits
Bloggy is a Python‑first blogging tool: drop in Markdown, get a site instantly. Simple by default. Infinitely customizable for CSS lovers.1
Quick Start
-
Install Bloggy:
pip install bloggy
-
Create a directory with your markdown files:
mkdir my-blog cd my-blog echo "# Hello World" > hello.md mkdir -p posts echo "# My First Post\nThis is a sample blog post." > posts/first-post.md
-
Run Bloggy:
bloggy . -
Open your browser at
http://127.0.0.1:5001
Key Features
✨ Advanced Markdown Features
- Footnotes as Sidenotes:
[^1]references become elegant margin notes on desktop, expandable on mobile with smooth animations - YouTube Embeds: Use
[yt:VIDEO_ID]or[yt:VIDEO_ID|Caption]for responsive iframe cards with aspect-ratio containers - Task Lists:
- [ ]/- [x]render as custom styled checkboxes (green for checked, gray for unchecked) with SVG checkmarks - Mermaid Diagrams: Full support for flowcharts, sequence diagrams, state diagrams, Gantt charts, etc.
- Interactive Diagrams:
- Zoom with mouse wheel (zooms towards cursor position)
- Pan by dragging with mouse
- Built-in controls: fullscreen, reset, zoom in/out buttons
- Auto-scaling based on diagram aspect ratio (wide diagrams like Gantt charts get special handling)
- Fullscreen modal viewer with dark mode support
- Theme-aware Rendering: Diagrams automatically re-render when switching light/dark mode via MutationObserver
- Mermaid Frontmatter: Configure diagram size with YAML frontmatter (width, height, min-height)
- Tabbed Content: Create multi-tab sections using
:::tabsand::tab{title="..."}syntax with smooth transitions - Relative Links: Full support for relative markdown links (
./file.md,../other.md) with automatic path resolution - Plain-Text Headings: Inline markdown in headings is stripped for clean display and consistent anchor slugs
- Math Notation: KaTeX support for inline
$E=mc^2$and block$$math equations, auto-renders after HTMX swaps - Superscript & Subscript: Use
^text^for superscript and~text~for subscript (preprocessed before rendering) - Strikethrough: Use
~~text~~for strikethrough formatting - Pandoc-style Attributes: Add classes to inline text with
`text`{.class #id}syntax for semantic markup (renders as<span>tags, not<code>) - Cascading Custom CSS: Add
custom.cssorstyle.cssfiles at multiple levels (root, folders) with automatic scoping - Title Abbreviations: Configure
.bloggyabbreviationsto force uppercase acronyms in sidebar and slug-based titles (e.g.,ai-features$\to$AI Features) - Folder Notes:
index.md,README.md, or<folder>.mdcan act as a folder summary; clicking the folder name opens it
See the full list in Markdown Writing Features.
🎨 Modern UI
- Responsive Design: Works beautifully on all screen sizes with mobile-first approach
- Three-Panel Layout: Posts sidebar, main content, and table of contents for easy navigation
- Dark Mode: Automatic theme switching with localStorage persistence and instant visual feedback
- HTMX Navigation: Fast, SPA-like navigation without full page reloads using
hx-get,hx-target, andhx-push-url - Collapsible Folders: Organize posts in nested directories with chevron indicators and smooth expand/collapse
- Sidebar Search: HTMX-powered filename search with results shown below the search bar (tree stays intact)
- PDF Posts: PDFs show up in the sidebar and open inline in the main content area
- Auto-Generated TOC: Table of contents automatically extracted from headings with scroll-based active highlighting
- TOC Autoscroll + Accurate Highlights: Active TOC item stays in view and highlight logic handles duplicate headings
- Inline Copy Button: Copy raw markdown from a button placed right next to the post title
- Mobile Menus: Slide-in panels for posts and TOC on mobile devices with smooth transitions
- Sticky Navigation: Navbar stays at top while scrolling, with mobile menu toggles
- Active Link Highlighting: Current post and TOC section highlighted with blue accents
- Auto-Reveal in Sidebar: Active post automatically expanded and scrolled into view when opening sidebar
- Ultra-Thin Scrollbars: Custom styled 3px scrollbars that adapt to light/dark theme
- Frosted Glass Sidebars: Backdrop blur and transparency effects on sidebar components
| Feature | Description |
|---|---|
| FastHTML Integration | Built on FastHTML for high performance and ease of use |
| Advanced Markdown Support | Footnotes as sidenotes, YouTube embeds, task lists, Mermaid diagrams, math notation, tabbed content, and more |
| Modern UI | Responsive design, dark mode, three-panel layout, HTMX navigation |
| Interactive Diagrams | Zoomable, pannable Mermaid diagrams with fullscreen support |
Installation
From PyPI (recommended)
pip install bloggy
From source
git clone https://github.com/yeshwanth/bloggy.git
cd bloggy
pip install -e .
Configuration
Bloggy supports four ways to configure your blog (in priority order):
- cli arguments (e.g.
bloggy /path/to/markdown) - Highest priority .bloggyconfiguration file (TOML format)- Environment variables - Fallback
- Default values - Final fallback
Bloggy Manual
Short, focused guides for deeper topics. Start with configuration and writing content, then dive into architecture and advanced details.
- Configuration & CLI
- Markdown Writing Features
- Mermaid Diagrams
- Architecture Overview
- Theming & CSS
- Security & Auth
- Advanced Behavior
-
If you're curious about how the intro was styled, visit this page.
Check out the Theming & CSS guide for details on customizing your blog's appearance. ↩
Metadata
Release files for bloggy 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bloggy-0.3.4.tar.gz | 69.0 kB | Without provenance | Details for bloggy-0.3.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bloggy-0.3.4-py3-none-any.whl | Python 3 | none | any | Details for bloggy-0.3.4-py3-none-any.whl |
Total release size: 135.9 kB
Release files / bloggy-0.3.4.tar.gz
| Download URL | bloggy-0.3.4.tar.gz |
|---|---|
| Size | 69.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5aba48ea998afcd9e33d0b2c37c4565e2f36c7ca88f2cf236cbd9965769fa1dc
|
|
BLAKE2b-256 checksum How to use checksums |
73c9d69ce821f462cf51e6ca717485a59974a46600b65ab719122b102c25bec0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Release files / bloggy-0.3.4-py3-none-any.whl
| Download URL | bloggy-0.3.4-py3-none-any.whl |
|---|---|
| Size | 66.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ba16227da0666f5c255d563542b5d1c5bc3eb07dc9f60867935fdad1b3d1e3a
|
|
BLAKE2b-256 checksum How to use checksums |
da66aefbca3b0fa047591d83c8006cddb8bca4a04fba1a0fd4efc2ad34947db3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Security for bloggy 0.3.4
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.