Skip to content

Commit 6bb91fe

Browse files
committed
Add documentation for how to use collections
Signed-off-by: Tao He <sighingnow@gmail.com>
1 parent 8c0c775 commit 6bb91fe

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,18 @@ tracker:
108108
disqushandler: "<YOUR DISQUS SHORTNAME>"
109109
```
110110

111+
## Jekyll collections
112+
113+
Jekyll's [collections][15] is supported to organize the pages in a more fine-grained manner, e.g.,
114+
115+
```yaml
116+
collections:
117+
pages:
118+
output: true
119+
sort_by: date
120+
permalink: /:collection/:year-:month-:day-:title:output_ext
121+
```
122+
111123
## Extra StyleSheet or Javascript elements
112124

113125
You can add extra CSS or JavaScript references using configuration collections:
@@ -204,3 +216,4 @@ Copyright 2019 Tao He.
204216
[12]: https://rubygems.org/gems/jekyll-remote-theme
205217
[13]: https://docs.github.com/en/pages/setting-up-a-github-pages-site-with-jekyll/adding-a-theme-to-your-github-pages-site-using-jekyll
206218
[14]: https://github.com/sighingnow/jekyll-gitbook/blob/master/_config.yml
219+
[15]: https://jekyllrb.com/docs/collections/

0 commit comments

Comments
 (0)