Git + Markdown = blog
Project description
Gitblog2
Git + Markdown = Blog
TODO
High priority:
- if nb_commits > 1: last_commit else "Updated on last_commit < info_tooltip hover='published on first_commit'>"
- Add bio and picture from github
- Look at cool HTML elements: https://tapajyoti-bose.medium.com/7-cool-html-elements-nobody-uses-436598d85668
- Draft support (set publish_date to first
mv
) - E2E tests
Low priority:
- Unit tests
- Fix root index.html not served by redbean
- Make it work on non-unix systems (mainly dealing with windows file system separator)
Installation
pip install gitblog2
Usage
As a command line:
gitblog https://codeberg.org/HenriTEL/git-blog.git --repo-subdir=example
As a library:
from gitblog2 import GitBlog
source_repo = "https://codeberg.org/HenriTEL/git-blog.git"
output_dir = "./www"
with GitBlog(source_repo, repo_subdir="example") as gb:
gb.write_articles(output_dir)
gb.write_indexes(output_dir)
gb.copy_static_assets(output_dir)
Internals
Stylesheet is based on water.css
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gitblog2-0.2.1.tar.gz
(9.8 kB
view hashes)
Built Distribution
Close
Hashes for gitblog2-0.2.1-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe1fcf02b7886f38aa6b8d7ed6ca2d94d5b85a114588221cc7c3643d540613c0 |
|
MD5 | 03ca5243acf9515c8c8125cf256d3228 |
|
BLAKE2b-256 | 2d00ef7fa27ad051d94b7f4f2c1315f3c13cedb8fbc6d53ad7b43f7e3736987f |