+[11 years ago]kaffeebohneI always develop in an extra folder, so I just deleted some posts +[11 years ago]lxsameerhow can i read yaml data of a post within a generator ? +[11 years ago]pontikiposts are a collection on site.posts; site is passed into the generator +[11 years ago]pontikiin each post, you access the front matter as post.data, which is a hash based on the yaml +[11 years ago]pontikiso site.posts.each {|post| post.data[:title] } for example
+[11 years ago]clatugayeHi all +[11 years ago]clatugayeIt is possible to extend Jekyll to define a custom collection of pages inside the site variable? Something like site.my_list_of_pages +[11 years ago]clatugayeI'm able to do this using a filter, {% assign process_pages = site.pages | filter_process_pages %} +[11 years ago]clatugaye{% for page in process_pages %} +[11 years ago]clatugaye{% endfor %}