forked from ploeh/ploeh.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (43 loc) · 1.28 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
---
layout: page
title: ploeh blog
tagline: Mark Seemann's blog
---
{% include JB/setup %}
{% for post in paginator.posts %}
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
<div class="date">{{post.date | date: "%A, %d %B %Y %H:%M:%S %Z" }}</div>
<div>
{{ post.content }}
</div>
<hr>
{% endfor %}
<!-- Pagination links -->
<div class="pagination">
{% if paginator.previous_page %}
<a href="/page{{paginator.previous_page}}" class="next">Next</a>
{% else %}
{% endif %}
{% if paginator.next_page %}
<a href="/page{{paginator.next_page}}" class="previous ">Previous</a>
{% else %}
{% endif %}
</div>
<div class="page_number ">Page {{paginator.page}} of {{paginator.total_pages}}</div>
<!-- Comments visibility -->
<script type="text/javascript">
function getElementsById(elementId) {
var elementCollection = new Array();
var allElements = document.getElementsByTagName("*");
for(i = 0; i < allElements.length; i++)
if(allElements[i].id === elementId)
elementCollection.push(allElements[i]);
return elementCollection;
};
function hideElementsById(elementId) {
var elements = getElementsById(elementId);
for(i = 0; i < elements.length; i++)
elements[i].hidden = true;
};
hideElementsById("comments");
</script>