forked from rohanchandra/type-theme
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
80 lines (69 loc) · 2.37 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
79
80
---
layout: default
---
<div class="home">
{% if site.theme.header_text %}
<div class="call-out">{{ site.theme.header_text }}</div>
{% endif %}
<div class="posts">
{% for post in paginator.posts %}
{% if post.hide != true %}
<div class="post-teaser">
<header>
<h1>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</h1>
<p class="meta" style="float: left;">
{% assign m = post.date | date: "%-m" %}
{% case m %}
{% when '1' %}Styczeń
{% when '2' %}Luty
{% when '3' %}Marzec
{% when '4' %}Kwiecień
{% when '5' %}Maj
{% when '6' %}Czerwiec
{% when '7' %}Lipiec
{% when '8' %}Sierpień
{% when '9' %}Wrzesień
{% when '10' %}Październik
{% when '11' %}Listopad
{% when '12' %}Grudzień
{% endcase %}
{{ post.date | date: "%-d, %Y" }}{% if post.author %} - {{ site.data.authors[post.author].name }}{% endif %}
</p>
<div class="clearfix"></div>
<div class="tags-container">
{% for tag in post.tags %}
<a href="{{site.baseurl}}/tag/index.html#{{ tag | cgi_escape | downcase }}" class="tag-box list-tags">{{ tag }}</a>
{% endfor %}
</div>
<div class="clearfix"></div>
</header>
<div class="excerpt">
{% if post.main_photo %}
<img class="excerpt_photo" src="{{ site.baseurl }}/img/posts/{{ post.main_photo }}">
{% endif %}
{{ post.excerpt }}
<a class="button" href="{{ post.url | prepend: site.baseurl }}">{{ site.theme.str_continue_reading }}</a>
</div>
</div>
{% endif %}
{% endfor %}
</div>
{% if paginator.total_pages > 1 %}
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="button" >
<i class="fa fa-chevron-left"></i>
{{ site.theme.str_prev }}
</a>
{% endif %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="button" >
{{ site.theme.str_next }}
<i class="fa fa-chevron-right"></i>
</a>
{% endif %}
</div>
{% endif %}
</div>