{%- if is_category or is_tag %}

{{ page_title }}

{%- if subtitle %}

{{ subtitle }}

{% endif -%} {% endif %} {%- assign post_count = model.posts | size -%} {%- if post_count > 0 %}
{%- for post in model.posts %}

{{ post.title }}

Published on {{ post.published_on | date: "MMMM d, yyyy" }} at {{ post.published_on | date: "h:mmtt" | downcase }} by {{ model.authors | value: post.author_id }}

{{ post.text }} {%- assign category_count = post.category_ids | size -%} {%- assign tag_count = post.tags | size -%} {% if category_count > 0 or tag_count > 0 %}

{%- if category_count > 0 -%} Categorized under: {% for cat in post.category_ids -%} {%- assign this_cat = categories | where: "Id", cat | first -%} {{ this_cat.name }}{% unless forloop.last %}, {% endunless %} {%- assign cat_names = this_cat.name | concat: cat_names -%} {%- endfor -%} {%- assign cat_names = "" -%}
{% endif -%} {%- if tag_count > 0 %} Tagged: {{ post.tags | join: ", " }} {% endif -%}

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

No posts found

{%- endif %}