--- layout: default ---
{% if site.data.style.main.blog.title %}
{{ page.title | escape }}
{% if page.subtitle %}
{{ page.subtitle | escape }}
{% endif %} {% endif %} {%- for post in site.posts -%} {%- assign condition = true -%} {%- assign compare = page.title | downcase -%} {%- if page.scope == 'authors' -%} {%- assign post_author = post.author | downcase -%} {%- if post_author == compare -%} {%- assign condition = true -%} {%- else -%} {%- assign condition = false -%} {%- endif -%} {%- elsif page.scope == 'categories' -%} {%- if post.categories contains compare -%} {%- assign condition = true -%} {%- else -%} {%- assign condition = false -%} {%- endif -%} {%- endif -%} {%- if condition -%}
{% if post.image %} Featured image of the post {% endif %}
{{ post.title | escape }}

{{ post.excerpt | strip_html | truncate: 240 }}

{%- if post.author -%} by {{ post.author }} | {%- endif -%} {{ post.date | date_to_long_string }} {%- if site.data.style.main.article.word_count -%} | {{ post.content | number_of_words }} {{ site.data.style.main.blog.words }} {%- endif -%}

{%- endif -%} {%- endfor -%}