{% if paginator.total_posts > 0 %} {% if site.data.settings.blog.show_thumbnails %}
{% endif %} {% for post in paginator.posts %} {% assign timeframe = 604800 %} {% assign post_in_seconds = post.date | date: "%s" | plus: 0 %} {% assign recent_posts = "now" | date: "%s" | minus: timeframe %} {% if site.data.settings.blog.show_thumbnails %} {% if forloop.first and paginator.page == 1 %}
{% assign image_path = "" %} {% if post.image.thumb %} {% capture image_path %}{{site.blog_images_dir}}thumbs/{{post.image.thumb}}{% endcapture %} {% capture full_path %}/{{site.blog_images_dir}}thumbs/{{post.image.thumb}}{% endcapture %} {% elsif post.image.name %} {% capture image_path %}{{site.blog_images_dir}}{{post.image.name}}{% endcapture %} {% capture full_path %}/{{site.blog_images_dir}}{{post.image.name}}{% endcapture %} {% elsif post.image.path %} {% capture image_path %}{{post.image.path | remove_first: "/" }}{% endcapture %} {% capture full_path %}{{post.image.path}}{% endcapture %} {% elsif post.image == site.data.settings.social_share_image %} {% capture image_path %}{{site.data.settings.placeholder | remove_first: "/" }}{% endcapture %} {% capture full_path %}{{site.data.settings.placeholder}}{% endcapture %} {% elsif post.image %} {% capture image_path %}{{post.image | remove_first: "/" }}{% endcapture %} {% capture full_path %}{{post.image}}{% endcapture %} {% else %} {{post.title}} {% endif %} {% if image_path != "" %} {% responsive_image_block %} template: _includes/thumbnail_image.html path: {{ image_path }} fullpath: {{ full_path }} {% if post.title %} title: {{ post.title | slugify: "ascii"}} alt: {{ post.title | slugify: "ascii"}} {% endif %} {% endresponsive_image_block %} {% endif %}
{% else %} {% comment %} Blog Filler Element - This is needed due to the layout of the blog. If not included then there will be an empty col on the first blog page. {% endcomment %} {% if forloop.index == 4 and paginator.page == 1 %} {% if site.data.settings.blog.filler-element %} {% include {{site.data.settings.blog.filler-element}} %} {% endif %} {% endif %}
{{post.categories | first | capitalize }}
{% if site.data.settings.blog.reading_time %} {% include read_time.html content=post.content %} {% endif %}

{{ post.title}}


{{ post.content | strip_html | truncatewords:30 }}

{% if post.author %} {% assign author = site.authors | where: "username", post.author | first %} {% assign author-url = author.url %}
{% endif %} {% if post.co-author %} {% if site.authors %} {% assign co-author = site.authors | where: "username", post.co-author | first %} {% assign co-author-url = co-author.url %} {% endif %}
{% if author.first_name %}{{author.first_name}}{% else %}{{post.author}}{% endif %} & {% if co-author.first_name %}{{co-author.first_name}}{% else %}{{post.co-author}}{% endif %} {% else %} {% if author.name %}{{author.name}}{% else %}{{post.author}}{% endif %} {% endif %}
{% endif %} {% else %}

{{ post.title}}

{{ post.date | date: "%A, %B %-d, %Y"}} {% if post_in_seconds > recent_posts %} New {% endif %}

{{ post.content | strip_html | truncatewords:30 }}

{% endif %} {% endfor %} {% if site.data.settings.blog.show_thumbnails %}
{% endif %} {% else %}

No posts of this category were found!

{% endif %}