This is a Flask-based web application designed to render and display Markdown articles with frontmatter metadata. The application provides a simple, elegant interface for publishing and reading blog-style articles.
- Dynamic Markdown article rendering
- Frontmatter metadata support
- Responsive and minimalist design
- Code syntax highlighting
- Automatic article sorting by date
- Flask
- markdown2
- PyYAML
- Pygments
- Supports YAML frontmatter in Markdown files
- Extracts metadata such as title, date, and author
- Converts Markdown to HTML with syntax highlighting
/: Displays list of articles sorted by date/article/<slug>: Renders individual articles by their slug
Articles should be written in Markdown with YAML frontmatter:
---
title: My Article Title
date: 2024-01-15
author: John Doe
---
Article content here...- Clone the repository
- Install dependencies:
pip install -r requirements.txt - Place Markdown files in the
articles/directory - Run the application:
python app.py
- Modify
templates/base.htmlfor global layout changes - Adjust styling in templates using Tailwind CSS classes
- Extend
app.pyto add more routes or functionality
Maintainer: Granth Agarwal
Email: heygranth@gmail.com