-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
31 lines (26 loc) · 993 Bytes
/
Copy pathindex.html
File metadata and controls
31 lines (26 loc) · 993 Bytes
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
---
layout: default
---
<div class="home">
<ul class="post-list">
{% assign counter = 0 %}
{% for post in site.posts %}{% if post.landing %}
<li>
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span><span style="float: right; padding-right: 50px;"><a href="javascript:ReverseDisplay('item{{ counter }}')"><small>(gist)</small></a></span>
<h2>
<span class="post-link"><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a> </span>
</h2>
<div id="item{{ counter }}"style="display:none;">
<p>{{ post.description }}</p>
</div>
</li>
{% capture counter %}{{ counter | plus: 1 }}{% endcapture %}
{% endif %}{% endfor %}
</ul>
</div>
<script type="text/javascript" language="JavaScript">
function ReverseDisplay(d) {
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}
</script>