forked from ploeh/ploeh.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (44 loc) · 1.34 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
---
layout: page
title: ploeh blog
tagline: danish software design
description: "Danish software design"
---
{% 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 hidden-print">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}" class="next">Next</a>
{% else %}
{% endif %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" 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>