{% capture icon %} {% case post.format %} {% when 'gallery' or 'image' %} {% when 'video' %} {% when 'link' %} {% else %} {% endcase %} {% endcapture %} {{ icon }}{{ post.title }} {% include meta.html %} {% if post.format == "gallery" %} {{ post.excerpt }} This Gallery contains {{ post.images }} photos. {% else %} {% if post.video %}{% endif %} {% if post.image %}{% endif %} {% if post.description %}{{ post.description }}{% else %}{{ post.content | markdownify | strip_html | truncatewords: 125 }}{% endif %} {% endif %}