开源实例之tumblelog
前言
tumblelog is a static microblog generator. There are two versions available, one written in Perl and one written in Python. Which version you use is up to you; I make an effort to keep the output of both versions identical.
The input is a single "Markdown" file divided into pages by starting a line with a date followed by a title. Each date page can further be split up into multiple articles using a single % on a line by itself.
实例地址
https://tumblelog.dujun.eu.org
实例配置
配置 | 描述 |
---|---|
系统 | Debian |
开发环境服务端 | Python 3.9 |
服务器 | Nginx |
程序 | tumblelog |
实例部署
权限要求
- 具有系统读写权限
- 已安装 Python
- 已安装 Nginx
安装程序
仓库地址:https://github.com/john-bokma/tumblelog
apt install -y sass
git clone https://github.com/john-bokma/tumblelog.git
cd tumblelog
python3 -m venv venv
pip install commonmark
pip install regex
source venv/bin/activate
mkdir htdocs
sass --sourcemap=none -t compressed styles/steel.scss htdocs/steel.css
python3 tumblelog.py --template-filename tumblelog-tags.html \
--output-dir htdocs/ \
--author 'Test' --name 'Test Blog' --description 'This is a test' \
--blog-url 'http://localhost:8000/' --css steel.css --tags \
tumblelog-tags.md
实例体验
后记
本实例仅供参考,不定期重置数据。