{% 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 %}
{% if post.image %} {% assign block_image = post.image | remove_first: "/assets/images/" %} {% capture block_image_alt %}{{post.title}} image {% endcapture %} {% else %} {% assign block_image = site.post_placeholder | remove_first: "/assets/images/" %} {% capture block_image_alt %}Blog post placeholder image {% endcapture %} {% endif %} {% picture featured_blog_image {{block_image}} --alt {{block_image_alt}} %}
{% assign author = site.authors | where: "username", post.author | first %} {% assign author-url = author.url %} {% if author.image %} {% assign author_image = author.image | remove_first: "/assets/images/" %} {% else %} {% assign author_image = site.avatar_placeholder | remove_first: "/assets/images/" %} {% endif %} {% capture image_alt %}{{author.name}} profile image{% endcapture %}
{{author.name}}
{% picture author_thumbnail_small {{author_image}} --alt {{image_alt}} %}
{{post.title}}
{{ post.date | date: "%A, %B %-d, %Y"}}

{% if post.description %} {{post.description}} {% else %} {{ post.content | strip_html | truncatewords:30 }} {% endif %}

Read

{% 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 == 6 and paginator.page == 1 %} {% include {{site.blog_filler_element}} %} {% endif %}
{% if post.image %} {% assign block_image = post.image | remove_first: "/assets/images/" %} {% capture block_image_alt %}{{post.title}} image {% endcapture %} {% else %} {% assign block_image = site.post_placeholder | remove_first: "/assets/images/" %} {% capture block_image_alt %}Blog post placeholder image {% endcapture %} {% endif %} {% picture featured_blog_image {{block_image}} --alt {{block_image_alt}} %}
{% assign author = site.authors | where: "username", post.author | first %} {% assign author-url = author.url %} {% if author.image %} {% assign author_image = author.image | remove_first: "/assets/images/" %} {% else %} {% assign author_image = site.avatar_placeholder | remove_first: "/assets/images/" %} {% endif %} {% capture image_alt %}{{author.name}} profile image{% endcapture %}
{{author.name}}
{% picture author_thumbnail_small {{author_image}} --alt {{image_alt}} %}
{{post.title}}
{{ post.date | date: "%A, %B %-d, %Y"}}

{% if post.description %} {{post.description}} {% else %} {{ post.content | strip_html | truncatewords:30 }} {% endif %} Read time: {% include blog/read_time.html content=post.content %}

Read

{% endif %} {% endfor %}
{% else %}

No posts of this category were found!

{% endif %}