Use a collection instead of pages for the articles#132
Merged
Conversation
5dfcc35 to
b1bbe99
Compare
parkr
approved these changes
Sep 10, 2016
| collections: | ||
| articles: | ||
| output: true | ||
| permalink: /:path/ |
There was a problem hiding this comment.
Looking at http://jekyllrb.com/docs/permalinks/#pages-and-collections, should this be /:path/:basename/ so _articles/getting-started/setting-up-a-repo.md becomes /getting-started/setting-up-a-repo/?
Contributor
Author
There was a problem hiding this comment.
Right now _articles/getting-started/branding.md goes to http://localhost:4000/getting-started/branding/
b1bbe99 to
3cd100c
Compare
|
Nice! I originally had this set up to use a collection (see #12), but changed it pretty early on. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This gets the automatic excerpts in the HTML description.
See #125 and #122
@parkr @benbalter @bkeepers Would you mind sanity checking this?
Here's what I ended up doing to get this working (please make sure I didn't miss any steps):
getting-started,marketing,troubleshooting, andsustaininginto a new directory called_articles/_articles/, renamegetting-started/index.mdtogetting-started.md. Same with the other index.md filessite.articlesinstead ofsite.pagescontentsandnextto reference the new paths within_articlesnextvariable in the front matter tofollowing, becausepage.nextis specialfollowinginstead ofnext