Popularity
0.3
Declining
Activity
0.0
Declining
1
0
1

Description

Simple static blog generator, written in Python, with the top Lighthouse scores.

Programming language: Python
Tags: Static Site Generator     Python     Blog    

Minimal Static Blog Generator in Python alternatives and similar packages

Based on the "Static Site Generator" category.
Alternatively, view Minimal Static Blog Generator in Python alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of Minimal Static Blog Generator in Python or a related project?

Add another 'Static Site Generator' Package

README

Minimal Static Blog Generator in Python

Simple static blog generator, written in Python, with the top Lighthouse scores.

[Lighthouse score](minimal--static-blog-generator--lighthouse-score.png "Minimal static blog generator Lighthouse scores")

Missing 'Best Practices' and 'SEO' due to server-side configuration.

Features

  • Minimal website size (9 KB pretty, 2 KB minified)
  • Simplicity
  • No JavaScript
  • Looks great good on desktop and mobile
  • Very easy to modify styles (assets/blog.css)
  • Simple HTML templating using Python's str.format(...)

Screenshots

[Minimal blog home page](blog-home.png "Minimal static blog home page")

[Minimal blog post](blog-post.png "Minimal static blog post")

Usage

  1. Add posts to posts/
  2. Run: python generate_static_blog.py
  3. See results in public/blog/

Optional - Here's an easy way to deploy to a server (assuming you have npm installed):

  1. Run: npx surge public/blog my-blog.surge.sh Note: You will need to change the sub-domain of the '*.surge.sh' URL

Improvement ideas

  • Rather than a using a custom parser for the front matter, use pip install fronmatter
  • More error catching (and better error messages)
  • Potentially use extensions for the markdown library: https://python-markdown.github.io/extensions/