杜郎俊赏 - dujun.io

开源实例之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.

实例地址

http://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

实例体验

首页

文章页

进入实例深度体验

后记

本实例仅供参考,不定期重置数据。

体验更多开源实例

标签: 开源实例 个人开源实例 静态博客开源实例 Python开源实例
日期:2023-07-13