Skip to content
This repository has been archived by the owner on Sep 6, 2020. It is now read-only.

Latest commit

 

History

History
164 lines (147 loc) · 6.22 KB

calendar.md

File metadata and controls

164 lines (147 loc) · 6.22 KB
layout title
base/bar/bar-sidebar-none
Calendar

{% comment %} Starting from the first date of instruction, find Sunday {% endcomment %} {% assign startdateseconds = site.data.calendar.dates_of_instruction.start | append: 'Z' | date: '%s' %} {% assign startdate = startdateseconds | date: '%F' %}

{% comment %} Starting from the last date of instruction, find Saturday {% endcomment %} {% assign enddateseconds = site.data.calendar.dates_of_instruction.end | append: 'Z' | date: '%s' %} {% assign enddate = enddateseconds | date: '%F' %}

{% comment %} How many days are in our calendar, adding 3600s in case of DST change {% endcomment %} {% assign numdays = enddateseconds | minus: startdateseconds | plus: 3600 | divided_by: 86400 %}