Inspect any variable in liquid

Since Jekyll 3, you can use the inspect liquid filter to display information about any variable.

  
  {{ site.my_collection | inspect }} 
  

Will display…

[#<Jekyll::Document _my_collection/file_1.md collection=my_collection>,
#<Jekyll::Document _my_collection/file_2.md collection=my_collection>,
#<Jekyll::Document _my_collection/file_3.md collection=my_collection>,
#<Jekyll::Document _my_collection/file_4.md collection=my_collection>]

Updated: