静态站点生成器
statico的Python项目详细描述
静力学
python中一个简单且可扩展的静态站点生成器
安装
pip install statico
文件
检查wiki以获得完整的文档
命令
Command | Description |
statico | Creates a website |
statico -c/–clear | Clears the workspace (deletes the website) |
statico -a/–article “My new article” | Creates a new article |
statico -p/–page “Projects” | Creates a new page |
statico -g/–generate | Generate the site to the output directory |
statico -P/–preview | Preview your website on 127.0.0.1:8000 |
statico -w/–watch | Watch for changes in the content directory |
statico -r/-rss http://example.com/atom.xml | Loads posts from a RSS feed |
statico -s/–setup-gh-deploy | Setup GitHub Pages details |
statico -d/–gh-deploy | Deploys to GitHub |
statico -i/–isolate <partial_name> | Isolate articles for fast rebuild times |
statico -I/–integrate | Integrates the isolated articles |
网站结构
- 原子.xml
- 内容/
- 文章/
- 索引.md
- 页数/
- 输出/
- settings.json
- 静态/
- css/样式表
- 图像/
- js/
- 模板/
- 文章.html
- base.html
- default.html
- 包括/
- footer.html之后
- 旁白/
- footer.html
- header.html
- head.html文件
- 导航.html
- 页面.html
变更日志
请参阅更改文件。
许可证
麻省理工学院。