{{ document.title }}
{% if document.date %} {% assign dateformat = document.date | date: "%A, %d" %} {% if document.last_modified_at %} {% endif %} {% endif %} {%- if showcol -%} {{ document.collection }} {%- endif -%}
--- layout: default --- {{- content -}} {%- if page.include_collection -%} {%- assign cols = page.include_collection | split: "," -%} {%- for col in cols -%} {%- if forloop.first -%} {%- assign alldocs = site.documents | where_exp: "item", "item.collection == col" -%} {%- assign showcol = false -%} {%- else -%} {%- assign docloop = site.documents | where_exp: "item", "item.collection == col" -%} {%- assign alldocs = alldocs | concat: docloop %} {%- assign showcol = true -%} {%- endif -%} {%- endfor -%} {%- else -%} {%- assign alldocs = site.documents -%} {%- assign showcol = true -%} {% endif %} {%- assign alldocs = alldocs | sort: 'date' | reverse -%} {%- if page.include_missdates -%} {%- else -%} {%- assign alldocs = alldocs | where_exp: "item", "item.date != nil" -%} {%- endif -%} {%- assign postsInYear = alldocs | group_by_exp: 'post', 'post.date | date: "%Y"' -%}
{% if document.date %} {% assign dateformat = document.date | date: "%A, %d" %} {% if document.last_modified_at %} {% endif %} {% endif %} {%- if showcol -%} {{ document.collection }} {%- endif -%}