What's the difference between Jekyll Posts, Pages, and Documents?
To those hooking into the internals of Jekyll, knowing a bit more about what each variable includes can be helpful.
site.pages only returns pages.1
site.posts returns documents in your
site.collections returns all collections.
site.documents returns all documents across all collections, including
module JekyllPushPress class Generator < Jekyll::Generator safe true priority :lowest def generate(site) # Insert code here. end end end
To run any of these snippets, create
bundle exec jekyll build. ↩