{%- assign post = model.posts | first -%}

{{ post.title }}

{% if post.published_on -%} Published {{ post.published_on | date: "dddd, MMMM d, yyyy" }} at {{ post.published_on | date: "h:mm tt" | downcase }} {%- else -%} **DRAFT** {% endif %} by {{ model.authors | value: post.author_id }} {%- if is_editor or is_author and user_id == post.author_id %} • Edit Post {%- endif %}

{{ post.text }}
{%- assign cat_count = post.category_ids | size -%} {% if cat_count > 0 -%}

Categorized under {% for cat_id in post.category_ids -%} {% assign cat = categories | where: "Id", cat_id | first %} {{ cat.name }} {% unless forloop.last %} • {% endunless %} {%- endfor %}

{%- endif %} {%- assign tag_count = post.tags | size -%} {% if tag_count > 0 -%}

Tagged {% for tag in post.tags %} {% unless forloop.last %} • {% endunless %} {%- endfor %}

{%- endif %}