-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
78 lines (63 loc) · 2.18 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
layout: default
title: Home
---
{% if site.lang == "xx" %}
<div class="container content">
<div class="masthead landing-page-head">
<h3 class="masthead-title">
<a href="{{ site.baseurl_root }}/">{{ site.title }}</a>
</h3>
</div>
<p>
Please select language / Välj språkversion för sidan
</p>
<a href="{{ site.baseurl_root }}/en">English</a>
·
<a href="{{ site.baseurl_root }}/sv">Svenska</a>
</div>
{% else %}
<div class="posts">
{% for post in paginator.posts %}
<div class="post">
<h1 class="post-title">
<a href="{{ site.baseurl }}{{ post.url }}">
{{ post.title }}
</a>
</h1>
<div class="post-metadata-line">{{ post.date | date_to_string }}
{% for category in post.categories %} | <a href="{{ category | slugify }}">{{ category }}</a> {% endfor %}
</div>
{{ post.excerpt }}
<a href="{{ site.baseurl }}{{ post.url }}">{%t global.read_full_post %}</a> |
<span class="disqus-comment-count" data-disqus-identifier="{{ post.url }}/"></span>
</div>
{% endfor %}
</div>
<div class="pagination">
{% if paginator.next_page %}
<a class="pagination-item older" href="{{ site.baseurl }}/page{{paginator.next_page}}">{%t global.older %}</a>
{% else %}
<span class="pagination-item older">{%t global.older %}</span>
{% endif %}
{% if paginator.previous_page %}
{% if paginator.page == 2 %}
<a class="pagination-item newer" href="{{ site.baseurl }}">{%t global.newer %}</a>
{% else %}
<a class="pagination-item newer" href="{{ site.baseurl }}/page{{paginator.previous_page}}">{%t global.newer %}</a>
{% endif %}
{% else %}
<span class="pagination-item newer">{%t global.newer %}</span>
{% endif %}
</div>
<script type="text/javascript">
var disqus_shortname = 'per-halleluja-nu';
var disqus_url = 'http://per.halleluja.nu' + document.location.pathname;
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
{% endif %}