Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

site.[:plural_post_type_name]

Returns a collection with all posts (objects with the specified post type). E.g. {{ site.pages }} returns a collection with all posts with the content type ‘page’. Adding .index returns the index post (the post with the index template). E.g. {{ site.pages.index }}. See the collection object for all possible attributes.

site.languages

Returns an array of objects representing the available languages for the site.

...