Sha256: 7bb170c37b7844178a2747096c2df5867dd44c8e749a701059fa02bc57f0aa37

Contents?: true

Size: 611 Bytes

Versions: 24

Compression:

Stored size: 611 Bytes

Contents

{%- assign _d = include.info -%}

{%- if _d.begin and _d.end -%}
  {%- assign y1 = _d.begin | date: '%Y' -%}
  {%- assign y2 = _d.end | date: '%Y' -%}
  {%- if y1 == y2 -%}
    {%- assign m1 = _d.begin | date: '%m' -%}
    {%- assign m2 = _d.end | date: '%m' -%}
    {{ _d.begin | date: '%b %e - ' }}
    {%- if m1 == m2 -%}
      {{ _d.end | date: '%e, %y' }}
    {%- else -%}
      {{ _d.end | date: '%b %e, %y' }}
    {%- endif -%}
  {%- else -%}
    {{ _d.begin | date: '%b %e, %y-' }}{{ _d.end | date: '%b %e, %y' }}
  {%- endif -%}
{%- elsif _d.date | date: '%b %e, %y' -%}
  {{ _d.date }}
{%- endif -%}

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
askclass-course-theme-0.14.0 _includes/date_range.html
askclass-course-theme-0.13.5 _includes/date_range.html
askclass-course-theme-0.13.4 _includes/date_range.html
askclass-course-theme-0.13.3 _includes/date_range.html
askclass-course-theme-0.13.2 _includes/date_range.html
askclass-course-theme-0.13.1 _includes/date_range.html
askclass-course-theme-0.13.0 _includes/date_range.html
askclass-course-theme-0.12.0 _includes/date_range.html
askclass-course-theme-0.11.1 _includes/date_range.html
askclass-course-theme-0.11.0 _includes/date_range.html
askclass-course-theme-0.10.0 _includes/date_range.html
askclass-course-theme-0.9.0 _includes/date_range.html
askclass-course-theme-0.8.0 _includes/date_range.html
askclass-course-theme-0.7.3 _includes/date_range.html
askclass-course-theme-0.7.2 _includes/date_range.html
askclass-course-theme-0.7.1 _includes/date_range.html
askclass-course-theme-0.7.0 _includes/date_range.html
askclass-course-theme-0.6.0 _includes/date_range.html
askclass-course-theme-0.5.2 _includes/date_range.html
askclass-course-theme-0.5.1 _includes/date_range.html