{{-pg.title-}}
{{-pg.subtitle-}}
{%-if site.show.page_authors and site.show.authors and pg.author or pg.location %} {%-endif-%}{%-comment-%}
lists pages as section cards given a pages array
inputs: none
dependencies:
pages: the pages array to render
site.static_files: to lookup and make sure a placeholder.png file exists
site.show.authors: to determine whether to show authors
site.show.page_authors: to determine whether to show authors
site.people: to lookup authors in the people array
site.title: to use as the author, as a last resort
local:
published_pages: pages filtered for `published==true`
placeholder: placeholder.png file to use in case no other page image is available
auth: the author's handle, used for unpublished authors in place of their name
author: the looked-up author in site.people
{%-endcomment-%}
{%-assign published_pages = pages | where: 'published', true-%}
{%-if published_pages != empty %}
{%-for pg in published_pages %}
{{-pg.subtitle-}}{{-pg.title-}}
It looks like there aren't any published pages here yet. Might you bug the site owner to create one for your look-see?
{% endif %}