-
Notifications
You must be signed in to change notification settings - Fork 54
/
index.html
executable file
·73 lines (56 loc) · 2.17 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
---
layout: default
---
<!-- Don't show pagination bar in homepage -->
{% if paginator.page > 1 %}
<!-- Include pagination bar -->
{% include pagination.html section="top" %}
{% endif %}
<!-- Loop for posts by paginator -->
{% for post in paginator.posts %}
<!-- Article -->
<article>
<!-- Article title -->
<a href="{{ site.baseurl }}{{ post.url }}" class="h1">{{ post.title }}</a>
<!-- If article has a cover photo -->
{% if post.coverPhoto %}
<!-- Article image with aspect ratio -->
<a href="{{ site.baseurl }}{{ post.url }}" class="ar-container">
<span class="ar-content" style="background-image: url({{ post.coverPhoto }});"></span>
</a><!-- .ar-container -->
{% endif %}
<!-- Article pre description -->
<section class="max-height">{{ post.content | strip_html | slice: 0, 200 }}</section>
<!-- Article date & article continue reading button container -->
<div class="article__bottom">
<!-- Article date -->
<span class="article__date">
{% if site.lang == "tr" %}
{% assign m = post.date | date: "%-m" %}
{{ post.date | date: "%-d" }}
{% case m %}
{% when "1" %}OCAK
{% when "2" %}ŞUBAT
{% when "3" %}MART
{% when "4" %}NİSAN
{% when "5" %}MAYIS
{% when "6" %}HAZİRAN
{% when "7" %}TEMMUZ
{% when "8" %}AĞUSTOS
{% when "9" %}EYLÜL
{% when "10" %}EKİM
{% when "11" %}KASIM
{% when "12" %}ARALIK
{% endcase %}
{{ post.date | date: "%Y" }}
{% else %}
{{ post.date | date_to_long_string | upcase }}
{% endif %}
</span>
<!-- Article continue reading button -->
<a class="article__button" href="{{ site.baseurl }}{{ post.url }}">{% if site.lang == "tr" %}DEVAMINI OKU{% else %}CONTINUE READING{% endif %}</a>
</div><!-- .article__bottom -->
</article><!-- article -->
{% endfor %}
<!-- Include pagination bar -->
{% include pagination.html section="bottom" %}