We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
可以对不同的文件夹,配置不同的加载+渲染策略,比如
/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
具体的配置类似这样:
[[config.page_groups]] title = "Posts" path = "/posts/" strategy = "posts" index_url = "/" index_template = "post-list" detail_url = "/post/" detail_template = "post-detail" [[config.page_groups]] path = "/pages/" strategy = "custom-pages" detail_url = "/" detail_template = "page" [[config.page_groups]] title = "Photos" path = "/photos/" strategy = "gallery" index_url = "/photos/" index_template = "gallery-list" detail_url = "/photos/" detail_template = "gallery-detail"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
可以对不同的文件夹,配置不同的加载+渲染策略,比如
/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
来控制导航栏渲染等具体的配置类似这样:
The text was updated successfully, but these errors were encountered: