{% if paginator.total_posts > 0 %}
{% 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 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 }}
{% include read_time.html content=post.content %}

{{ post.title}}

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

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

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

No posts of this category were found!

{% endif %}