GistTree.Com
Entertainment at it's peak. The news is by your side.

Show HN: Static blog generator in about 1 KLOC

0

tumblelog is a static microblog generator. There are two versions
accessible, one written in Perl and one written in Python. Which
model you utilize is up to you; I achieve an effort to reduction the output of
both versions same.

The input is a single “Markdown” file divided into pages by starting a
line with a date adopted by a title. Every date online page can extra be
split up trusty into a pair of articles the usage of a single % on a line by itself.

Parameters to manipulate the blog are given via describe line
arguments. This diagram creates the blog HTML5 pages and both a JSON
and RSS feed.

Python Version Lickety-split Delivery

Set up sass and pip3 for Linux:

sudo just set up -y git sass python3-pip

For macOS:

brew set up sass
brew set up pip3

Then:

git clone https://github.com/john-bokma/tumblelog.git
cd tumblelog
python3 -m venv venv
pip3 set up commonmark
source venv/bin/instructed
mkdir htdocs
sass --sourcemap=none -t compressed styles/steel.scss htdocs/steel.css
python3 tumblelog.py --template-filename tumblelog.html --output-dir htdocs/ 
        --creator 'Test' --name 'Test Blog' --description 'Right here's a take a look at'    
        --blog-url 'http://example.com/' --css steel.css tumblelog.md

To inquire the generated tell at http://localhost: 8000/ enter:

cd htdocs
python3 -m http.server

Documentation

Model Examples

A screenshot of the four styles that come with tumblelog

A screenshot of four of the twelve styles that reach with tumblelog.

The screenshots directory has 1:1 examples of themes that reach with
tumblelog.

Blogs

If you happen to exhaust to like your tumblelog generated tell listed, please let me know.

Read More

Leave A Reply

Your email address will not be published.