I just started with nanoc. I am wondering if someone can explain me how I should create blog posts and how to add them in the feed?
I know how to create items, but how do I create posts in the blog folder? Also how to show the 5 most recent posts?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Blog posts are just like other items, and it’s up to you to decide how you want them to be identified. Some people like using “kind: article” while other people prefer to stick them in a content/blog/ directory.
nanoc comes with a Blogging helper. Take a look at the
#atom_feedmethod, which can be used for generating an Atom feed. This method takes an:articlesparameter containing a list of articles (by default, it will take the items with “kind: article”). This way, you can create a feed for a specific collection of items.