Write a New Post {%- assign post_count = model.posts | size -%} {%- if post_count > 0 %} {%- assign date_col = "col-xs-12 col-md-3 col-lg-2" -%} {%- assign title_col = "col-xs-12 col-md-7 col-lg-6 col-xl-5 col-xxl-4" -%} {%- assign author_col = "col-xs-12 col-md-2 col-lg-1" -%} {%- assign tag_col = "col-lg-3 col-xl-4 col-xxl-5 d-none d-lg-inline-block" -%} PostDate Title Author Tags {% for post in model.posts -%} {%- if post.published_on -%} Published {{ post.published_on | date: "MMMM d, yyyy" }} {%- else -%} Not Published {%- endif -%} {%- if post.published_on != post.updated_on -%} (Updated {{ post.updated_on | date: "MMMM d, yyyy" }}) {%- endif %} {%- if post.published_on -%} {{ post.published_on | date: "MMMM d, yyyy" }} {%- else -%} Not Published {%- endif -%} {%- if post.published_on != post.updated_on %} {{ post.updated_on | date: "MMMM d, yyyy" }} {%- endif %} {%- if post.episode %}Episode{% endif -%} {{ post.title }} View Post {% if is_editor or is_author and user_id == post.author_id %} • Edit {% endif %} {% if is_web_log_admin %} • {%- assign post_del_link = "admin/post/" | append: post.id | append: "/delete" | relative_link -%} Delete {% endif %} {%- assign tag_count = post.tags | size -%} Authored by {{ model.authors | value: post.author_id }} | {% if tag_count == 0 -%} No {%- else -%} {{ tag_count }} {%- endif %} Tag{% unless tag_count == 1 %}s{% endunless %} {{ model.authors | value: post.author_id }} {{ post.tags | join: ", " }} {%- endfor %} {% if model.newer_link or model.older_link %} {% if model.newer_link %} « Newer Posts {% endif %} {% if model.older_link %} Older Posts » {% endif %} {% endif %} {% else %} This web log has no posts {% endif %}