jsstevenson / bssg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bssg: Basic Static Site Generator

Description

Generates a simple static blog site, including headers (eg navigation bar to pages) based on provided HTML templates and posts in Markdown files.

Setup & Usage

Requirements

Execution

Get requirements via pip

pip install -r requirements.txt

Give it an input directory and an output destination:

python3 bssg.py <path-to-blog-content> <path-to-output>

Input directory layout

The provided blog content directory should include the following elements:

├── posts
│   ├── post1.md
│   ├── post2.md
│   └── post3.md
│     ...
├── static-pages # include static content pages here
│   ├── index.html
│   └── projects.html
│     ...
├── resources # for any needed content in posts
│   ├── img1.png
│   ├── img2.png
│   └── img3.png
│     ...
└── theme
    ├── body_template.html
    ├── card_template.html
    ├── custom.css
    ├── header_template.html
    ├── post_list_title_card.html
    └── post_list_card.html

Known Issues

  • Risks of duplicating post names/URLs and tag URLs

About

License:MIT License


Languages

Language:Python 100.0%