Skip to content

Latest commit

 

History

History
22 lines (20 loc) · 727 Bytes

index.md

File metadata and controls

22 lines (20 loc) · 727 Bytes
layout title
default
MontréHack - Monthly Capture-The-Flag Solving and Cybersecurity Workshop

{% comment %} We implemented a simple logic to switch between a "Stay Tuned" page and the current event page based on the date.

The plus 1-day (in seconds) prevents updates during the event to replace the current edition with stay-tuned page. Plus 1 casts a string into an int. {% endcomment %} {% assign latestPostDate = site.posts.first.date | date: '%s' | plus: 86400 %} {% assign currentDate = site.time | date: '%s' | plus: 1 %}

{{ site.posts.first.content }} {% comment %} {% if latestPostDate > currentDate %} {{ site.posts.first.content }} {% else %} {% include stay-tuned.md %} {% endif %} {% endcomment %}