hantang / weblog

A python static blog generator.

Home Page:https://hantang.github.io/weblog/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

weblog

A python static blog generator.

Overview

Weblog is a simple static blog generator built with python.

Inspired by

mainly techs:

Demo

Here is: https://hantang.github.io/weblog/

Snapshots:

  • HomePage
  • DarkMode
  • Menus
  • Post

Usage

A example is here:

# install weblog
https://github.com/hantang/weblog.git
cd weblog
pip install .

# then cd <somewhere>
# init project (default site-name is blog-site)
python -m weblog init [--path site-name] [--query] [--url url-path]

# build the site
cd <site-name>
python -m weblog build

# run local server
python -m http.server -d deploy
# then open `http://localhost:8000`

# clean deploy
python -m weblog clean

Build Packages

# ref: https://packaging.python.org/en/latest/tutorials/packaging-projects/
# pypython.toml
# install dependencies
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build

# build to wheel
python3 -m build

# install
pip install dist/weblog-0.0.2-py3-none-any.whl

Themes

theme-vanilla

About

A python static blog generator.

https://hantang.github.io/weblog/

License:MIT License


Languages

Language:Python 72.9%Language:CSS 15.0%Language:HTML 10.8%Language:Shell 1.3%