-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
29 lines (27 loc) · 1.38 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
layout: default
---
{% include install-note.html %}
<div class="posts">
{% for post in site.posts reversed %}
{% capture nowyear %}{{'now' | date: '%Y'}}{% endcapture %}
{% capture postyear %}{{post.date | date: '%Y'}}{% endcapture %}
{% capture nowday %}{{'now' | date: '%j'}}{% endcapture %}
{% capture postday %}{{post.date | date: '%j'}}{% endcapture %}
{% assign postday = postday | plus: 0 %}
{% assign nowday = nowday | minus: 1 %}
{% if postyear > nowyear or postday >= nowday and postyear >= nowyear %}
<article class="post">
<h2>{{ post.title }}</h2>
<ul>
<li><strong>Details:</strong> {{ post.details }}</li>
<li><strong>When:</strong> {{ post.date | date: "%B %d, %Y" }}, {{ post.time | date:"%I:%M %p" }} (may change)</li>
<li><strong>Where:</strong> {{ post.location }}</li>
{% if post.packages != nil %}<li><strong>Package(s) to install:</strong> <code>install.packages({{ post.packages }})</code></li>{% endif %}
{% if post.notes == true %}<li><strong>Notes:</strong> Code and notes are <a href="{{ site.github.url }}{{ post.url }}">online here.</a></li>{% endif %}
{% if post.video != nil %}<li><strong>Video:</strong> Session was recorded and is <a href="{{ post.video }}">on YouTube.</a></li>{% endif %}
</ul>
</article>
{% endif %}
{% endfor %}
</div>