-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
55 lines (48 loc) · 2.03 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
layout: default
class: postlist
title: Welcome!
---
<div class="row">
<div class="small-12 columns small-centered" id="home">
<dl class="accordion" data-accordion>
<dd class="accordion-navigation">
<a id="welcomeheader" href="#welcome"><i class="fa fa-info-circle"></i>Welcome</a>
<div id="welcome" class="content active">
{% capture welcometext %}{% include welcome.md %}{% endcapture %}
{{ welcometext | markdownify }}
</div>
</dd>
{% for post in site.posts %}
{% assign print = "true" %}
{% for layout in site.special-layouts %}
{% if post.layout contains layout %}
{% assign print = false %}
{% endif %}
{% endfor %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% if this_year == "2012" or this_year == "2011" %}
{% assign print = false %}
{% endif %}
{% if post.published == false %}{% assign print = false %}{% endif %}
{% if print == "true" %}
<dd class="accordion-navigation">
<a href="#panel{{ forloop.index }}" onclick="ga('send', 'event', 'Reading', 'Expand Post', '{{ post.title | slugify }}')"><i class="fa fa-angle-right"></i><i class="fa fa-angle-down"></i>{{ post.title }}</a>
<div id="panel{{ forloop.index }}" class="content">
<div class="text-right post-date"><em>First published on {{ post.date | date: " %B %e, %Y" }}</em></div>
{{ post.content | markdownify}}
{% if post.link %}
<div>
{% if post.video %}{% assign linktext="Watch the video" %}
{% elsif post.paper %}{% assign linktext="Read the paper" %}
{% else %}Read more on {% capture linktext %}{{ post.link | replace: 'https://', 'http://' | remove:'http://' | split:'/' | first }}{% endcapture %}{% endif %}
<a href="{{post.link}}" onclick="ga('send', 'event', 'Reading', 'Follow Link', '{{ post.title | slugify }}')">{{ linktext }}</a>
</div>
{% endif %}
</div>
</dd>
{% endif %}
{% endfor %}
</dl>
</div>
</div>