Add note to collections doc on hard-coded collections.

This commit is contained in:
Ricardo N Feliciano 2017-02-11 00:06:48 -05:00
parent 2a56e9ce0d
commit 9ec7969c09
No known key found for this signature in database
GPG Key ID: 71677F04C919CB01
1 changed files with 9 additions and 0 deletions

View File

@ -321,6 +321,15 @@ you specified in your `_config.yml` (if present) and the following information:
</table> </table>
</div> </div>
<div class="note info">
<h5>A Hard-Coded Collection</h5>
<p>In addition to any collections you create yourself, the
<code>posts</code> collection is hard-coded into Jekyll. It exists whether
you have a <code>_posts</code> directory or not. This is something to note
when iterating through <code>site.collections</code> as you may need to
filter it out.</p>
</div>
### Documents ### Documents