{%- comment -%} One resource as a list-group item: title, date, and a short summary. Usage: {% include resource-list-item.htm resource=r %} The summary is the front matter excerpt; auto-generated ones that only point at the downloadable PDF are skipped. {%- endcomment -%} {%- assign r = include.resource -%} {%- assign summary = r.excerpt | strip_html | strip_newlines | strip -%}
  • {{ r.title | escape }} {{ r.date | date: "%b %Y" }}
    {%- unless summary contains "downloadable" or summary contains "download" or summary == "" %}

    {{ summary | truncate: 220 }}

    {%- endunless %}