{%- assign post = include.post -%} {%- assign foundImage = false -%} {%- assign imgAlt = false -%} {%- assign images = post.content | split:"' | last -%}
      {%- assign imgAlt = capt | split: '' | first -%} {%- assign foundImage = image | split:'src="' | last -%} {%- assign foundImage = foundImage | split:'" alt=' | first -%} {% break %} {%- endif -%} {%- endif -%} {%- endfor -%} {%- if post.image -%} {%- assign foundImage = post.image -%}{%- endif -%} {%- unless foundImage -%}

{{ post.title | capitalize }}

{{ post.date | date: "%b %-d, %Y" }}

{%- if post.description -%} {{ post.description | strip_html | strip_newlines | truncate: 120 }} {%- else -%} {{ post.content | strip_html | strip_newlines | truncate: 120 }} {%- endif -%}

{%- else -%} {{ imgAlt | default: post.title }}

{{ post.title | capitalize }}

{%- endunless -%}