Skip to content
This repository has been archived by the owner on Sep 5, 2022. It is now read-only.
/ yabg Public archive

Yet another blog generator.

Notifications You must be signed in to change notification settings

yangtau/yabg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yet Another Blog Generator

yabg is a simple static blog generator built with Jinja2 and Python-Markdown. I use it to power my blog. Most blog generators, like hexo, are too complex. I just want a simple one without too many useless functions, so I build this one.

example: yangtau.me

Requirements

pip install Jinja2
pip install markdown
pip install pymdown-extensions
pip install PyYAML

Config

  • TODO

Build

python3 yabg/main.py config.yaml

now.sh Deployment

FRAMEWORK PRESET: other
BUILD COMMAND: pip install PyYAML Jinja2 markdown pymdown-extensions && python3 yabg/main.py
OUTPUT DICTORY: public # setted in your config.yaml

Add rm -rf public/ if you need to clear the old one before building the new one (if your output_dir in config.yaml is public/):

BUILD COMMAND: pip install PyYAML Jinja2 markdown pymdown-extensions && rm -rf public/ && python3 yabg/main.py

Dart-Generator

I first built this generator using Dart and Mustache, but the markdown library of Dart just supports the basic markdown syntax and Mustache is not powerful enough.

The code of Dart-Generator is on the branch dart-gen.