Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
支持多语言
预览 https://hmcl-docs.github.io
通过合并不同语言版本的产物实现多语言。
_config.yml
完成一次构建生成产物到_site
文件夹中。_config.*.yml
规则的配置构建并将产物覆盖到到_site
文件夹中。_config.{flag}.yml
完成构建会生成产物到_site_{flag}
文件夹中。src/data/*.{flag}.*
覆盖src/data/*.*
以便于指定 flag 的内容可以读取指定 flag 版本的数据。_site
文件夹并删除_site_{flag}
文件夹。改动
src
: 用于存储文章相关的文件,可以避免根目录存在过多内容,分离非文章内容例如根目录的脚本文件夹、README 等。src/_pages
: 用于存储非集合内容页面,例如主页、404 等。src/assets
: 用于存储静态资源。src/collections
: 用于存储集合。src/data
: 用于存储数据。src/includes
: 用于存储页面片段文件,可以被其它页面引用。src/layouts
: 用于存储布局文件。hmcl.png
来自 HMCL 仓库。src/_pages
下的文章默认启用。与 document 类似该布局支持 hits note author contributors 等。关联 ISSUES