January 4, 2022
I have a passion for learning and sharing my findings but I've struggled to find a suitable framework for quickly writing blog posts. WordPress is the goto for blogging, but there's too much bloated overhead for creating a simple blog post.
Last week, I stumbled upon Fabien Sanglard's website on HackerNews and it matched the exact vibe I was after. As I was drafting an email inquiring about his website's framework, I clicked a post named: 0x10 Rules.
It turns out websites are as easy as converting one writing format into HTML and prettying it up with simple CSS. Fabien developed his framework with PHP and I can do just the same with Python.
This repo is my rendition of a simple web framework which converts markdown files to static HTML pages. Thanks Fabien.
The HTML pages are generated from markdown using Python. A main script called 'generate_html.py' searches all sub-directories for files named 'article.md' and executes 'article.py' to convert the .md
files to index.html
.
Python frameworks used:
- python-markdown2 to convert markdown files into HTML
- pygments-css to highlight code syntax