purepress
purepress copied to clipboard
A simple static blog generator.
也就是遍历文件,而不是解析用户输入的 url path。遍历文件之后对每个文件生成确定的 url,这样可以节省两个方向逻辑一致性的维护成本。
可以对不同的文件夹,配置不同的加载+渲染策略,比如 - 文件 `/posts/2022-10-01-post-title.md` 渲染为 `/post/2022/10/01/post-title/`,并将 `/` 作为文章列表页面 - 文件 `/pages/foo/bar.md` 渲染为 `/foo/bar.html` - 文件 `/photos/cat.md` 渲染为 `/photos/cat.html`,并将 `/photos/` 作为照片列表页面 - 文件 `/docs/foo/bar.md` 渲染为 `/docs/foo/bar.html`,并可以通过读取 `config.toml` 来控制导航栏渲染等 具体的配置类似这样: ```toml [[config.page_groups]]...
https://github.com/Python-Markdown/markdown/issues/53
安装失败
安装失败,Python 版本 3.11.9,系统为 Windows 10,在 MacOS 下依旧安装失败,具体报错如下 ``` Workspace\Python\pure via 🐍 v3.11.9 (pure) ❯ pip install -i https://mirrors.bfsu.edu.cn/pypi/web/simple --upgrade purepress Looking in indexes: https://mirrors.bfsu.edu.cn/pypi/web/simple Collecting purepress Downloading https://mirrors.bfsu.edu.cn/pypi/web/packages/a4/82/14ab91e117216d4795a8da49a99740ecc6355272a2c665ccd22a5eed5af4/purepress-0.6.1-py3-none-any.whl (9.7 kB)...