-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
61 lines (58 loc) · 1.68 KB
/
Copy pathindex.html
File metadata and controls
61 lines (58 loc) · 1.68 KB
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
56
57
58
59
60
61
---
layout : layout
title : SiteName
---
<ul class="posts">
{% for post in site.posts limit:5 %}
<li>
<div class="idea">
{% if forloop.first and post.layout == "post" %}
<h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
<div class="postdate">{{ post.date | date: "%e %B, %Y" }}
<ul>
{% for tag in post.tags %}
<li><a href="/tag/{{ tag }}">{{ tag }}</a></li>
{% endfor %}
</ul>
</div>
{{ post.content }}
<br />
<a href="{{ post.url}}#disqus_thread">Comments</a>
{% else %}
<h2><a class="postlink" href="{{ post.url }}">{{ post.title }}</a></h2>
<div class="postdate">{{ post.date | date: "%e %B, %Y" }}
<ul>
{% for tag in post.tags %}
<li><a href="/tag/{{ tag }}">{{ tag }}</a></li>
{% endfor %}
</ul>
</div>
{{ post.content }}
<a href="{{ post.url }}#disqus_thread">Comments</a>
{% endif %}
</div>
</li>
{% endfor %}
</ul>
<h3>OLDER</h3>
<ul class="postArchive">
{% for post in site.posts offset:5 %}
<li>
<span class="olderpostdate"> {{ post.date | date: "%d %b" }} </span> <a class="postlink" href="{{ post.url }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>
<script type="text/javascript">
//<![CDATA[
(function() {
var links = document.getElementsByTagName('a');
var query = '?';
for(var i = 0; i < links.length; i++) {
if(links[i].href.indexOf('#disqus_thread') >= 0) {
query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&';
}
}
document.write('<script charset="utf-8" type="text/javascript" src="http://disqus.com/forums/DISQUS_NAME/get_num_replies.js' + query + '"></' + 'script>');
})();
//]]>
</script>