集合和草稿,或非输出元素
Collections and drafts, or non-outputting elements
我正在使用 Jekyll 集合来呈现一组页面:
collections:
mycoll:
output: true
permalink: /:collection/:path/
还有一组文件:
_mycoll/
el1.md
el2.md
el3.md
...
但我需要避免生成此合集的某些页面,就像post 草稿一样。
可能吗?
在 jekyll 2.x 下,使用 _config.yml
排除数组 :
exclude:
- _mycoll/el2.md
使用 Jekyll 3.x,使用 post/collection item published
front matter 变量
---
title: toto
published: false
---
content
我正在使用 Jekyll 集合来呈现一组页面:
collections:
mycoll:
output: true
permalink: /:collection/:path/
还有一组文件:
_mycoll/
el1.md
el2.md
el3.md
...
但我需要避免生成此合集的某些页面,就像post 草稿一样。
可能吗?
在 jekyll 2.x 下,使用 _config.yml
排除数组 :
exclude:
- _mycoll/el2.md
使用 Jekyll 3.x,使用 post/collection item published
front matter 变量
---
title: toto
published: false
---
content