{% assign post = include.post %}
{%- assign foundImage = false -%}
{%- assign imageUrl = false -%}
{%- assign images = post.content | split:'
' | first -%}
{%- assign curImage = image | split:'src="' | last -%}
{%- assign imageUrl = curImage | split:'" alt=' | first -%}
{% break %}
{%- endunless -%}
{%- endif -%}
{%- endfor -%}
{%- if post.date -%}
{%- case include.type -%}
{%- when 'microdata' -%}
{% when 'ogimage' %}
{%- unless post.image -%}
{%- endunless -%}
{%- else -%}
{% endcase %}
{% endif %}