1 个不稳定版本
| 0.1.0 | 2024年5月9日 | 
|---|
32 在 #ssg
26KB
508 行
simplistis
这是一个用 Rust 编写的周末项目(目前是这样!),以满足我托管个人网站的需求。已经有更多优秀的工具了吗?当然有,但自己动手制作更有趣,不是吗?
文件夹结构
简化列表遵循一个简单的文件夹结构 simplistis。
(root) ->
  _index.md (index content file, required)
  template.hbs (index template file, required)
  content.hbs (content template file, optional, but required if there's file
other than _index.md)
  [slug].md (content file, optional)
  (sub-folder) ->
    _index.md (subfolder index content file, required)
    template.hbs (subfolder index template file, required)
    (the rest are basically the same as the root)
要查看此文件夹结构的有效示例,您可以查看 test_file 文件夹。这个文件夹将包含一个非常简单的(或者说 simplistis)主页和博客示例。
CLI
目前 simplistis 仅支持 CLI 接口,尽管它非常易于使用。您需要使用和记住的唯一命令(尽管这可能在将来发生变化,但请放心,我会确保它与之前兼容!)。
simplistis [template directory root] [output directory root]
[!警告] 这将清除您的
[输出目录根]下的任何文件(递归)!
待办事项
- 修复测试以遵循新的约定(如果您检查 Git,在此之前有 2 种不同的文件夹结构)
开发者
此项目由所有贡献者开发。以下列出了名单。
依赖项
~6.5MB
~122K SLoC