Sha256: 765b5467f9255ae3f3d3a943dc1748446d2ed809d36c3bd143a8869b2b343632

Contents?: true

Size: 1.05 KB

Versions: 10

Compression:

Stored size: 1.05 KB

Contents

---
layout:           default
# TODO: add projects and pages to the archive - bound the date via `group_by_exp`
---

{%-if page.type=='year'-%}
  {% assign date_format   = '%Y'-%}
{%-elsif page.type=='month'-%}
  {% assign date_format   = '%B %Y'-%}
{%-elsif page.type=='day'-%}
  {% assign date_format   = '%B %-d, %Y'-%}
{%-endif-%}

{% assign formatted_date  = page.date       | date: date_format %}
{% assign title           = formatted_date  | append: ' Archives' %}
{%-assign projects        = site.projects   | where_exp: 'project', 'project.date == formatted_date and project.published == true'-%}
{%-assign pages           = site.pages      | where_exp: 'pg',      'pg.date      == formatted_date and pg.published == true'-%}

<section>
  {% include page_header.html page_title=title %}
  <!-- Page Content -->
  <hr class="major"/>
  {% include posts.html %}
  {% if projects != empty-%}
  <h2>Projects {{ title-}}</h2>
  {% include projects.html %}
  {%-endif-%}
  {% if pages != empty-%}
  <h2>Pages {{ title-}}</h2>
  {% include pages.html %}
  {%-endif-%}
</section>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
jekyll-theme-editorial-1.0.10 _layouts/archive.html
jekyll-theme-editorial-1.0.9 _layouts/archive.html
jekyll-theme-editorial-1.0.8 _layouts/archive.html
jekyll-theme-editorial-1.0.7 _layouts/archive.html
jekyll-theme-editorial-1.0.6 _layouts/archive.html
jekyll-theme-editorial-1.0.5 _layouts/archive.html
jekyll-theme-editorial-1.0.4 _layouts/archive.html
jekyll-theme-editorial-1.0.3 _layouts/archive.html
jekyll-theme-editorial-1.0.2 _layouts/archive.html
jekyll-theme-editorial-1.0.1 _layouts/archive.html