Skip to content

Commit

Permalink
Fix: Add note about posts directory in context of custom collections …
Browse files Browse the repository at this point in the history
…directory
  • Loading branch information
localheinz committed Jan 7, 2018
1 parent 7895168 commit 6793402
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/_docs/collections.md
Expand Up @@ -49,12 +49,18 @@ defaults:
<div class="note">
<h5>Gather your collections {%- include docs_version_badge.html version="3.7.0" -%}</h5>

<p>You can optionally specify a directory to store all your collections in the same place with <code>collections_dir: my_collections</code></p>
<p>You can optionally specify a directory to store all your collections in the same place with <code>collections_dir: my_collections</code>.</p>

<p>Then Jekyll will look in <code>my_collections/_books</code> for the <code>books</code> collection, and
in <code>my_collections/_recipes</code> for the <code>recipes</code> collection.</p>
</div>

<div class="note warning">
<h5>Be sure to move posts into custom collections directory</h5>

<p>If you specify a directory to store all your collections in the same place with <code>collections_dir: my_collections</code>, then you will need to move your <code>_posts</code> directory to <code>my_collections/_posts</code>.</p>
</div>

### Step 2: Add your content {#step2}

Create a corresponding folder (e.g. `<source>/_my_collection`) and add
Expand Down

0 comments on commit 6793402

Please sign in to comment.