-
Notifications
You must be signed in to change notification settings - Fork 59
/
blogi.html
141 lines (136 loc) · 5.04 KB
/
blogi.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
---
title: Uudised ja blogi
layout: default
permalink: /blogi/
ref: blog
lang: et
---
{% include breadcrumbs.html %}
<h1>Uudised ja blogi</h1>
<br>
<div class = "container">
<div id = "blogGroup">
<a data-toggle="collapse" href="#articleCollapse" role="button" aria-expanded="true" aria-controls="articleCollapse"> Artiklid</a>
<a class ="collapsed" data-toggle="collapse" href="#newsCollapse" role="button" aria-expanded="false" aria-controls="newsCollapse"> Uudised</a>
<!-- <a class ="collapsed" data-toggle="collapse" href="#juhendCollapse" role="button" aria-expanded="false" aria-controls="juhendCollapse"> Juhendile</a> -->
<a class ="collapsed" data-toggle="collapse" href="#workingCollapse" role="button" aria-expanded="false" aria-controls="workingCollapse"> Töödokumendid</a>
<div style="
display: grid;
grid-template-columns: repeat( auto-fit, minmax(300px, 1fr) );
grid-gap: 20px;
">
{% assign sortnews = site.blogi | where: "lang", page.lang | sort:"submitted" | reverse %}
{% for blogi in sortnews %}
{% if blogi.article_type == 'article' %}
<div class="collapse show" id="articleCollapse" data-parent = "#blogGroup">
<div
class="card"
style="
display: flex;
flex-direction: column;
justify-content: space-between;
"
>
<div class="card-body">
<a href="{{ site.baseurl }}{{ blogi.url }}">
<div style="
height: 180px;
background-image: url(/img/blogi/{{blogi.preview_img}});
background-size: cover;
border-radius: .25rm;
border: 2px solid #dee2e6;
"></div>
<h3>{{ blogi.news_title }}</h3></a>
<p class="text_control">{{ blogi.preview }}<a href="{{ site.baseurl }}{{ blogi.url }}"> Loe lisa... </a></p>
</div>
<div class="card-footer text-muted">
Lisanud {{ blogi.author }} {{ blogi.submitted | date: "%d/%m/%Y" }}
</div>
</div>
</div>
{% elsif blogi.article_type == 'news' %}
<div class="collapse" id="newsCollapse" data-parent = "#blogGroup">
<div
class="card"
style="
display: flex;
flex-direction: column;
justify-content: space-between;
"
>
<div class="card-body">
<a href="{{ site.baseurl }}{{ blogi.url }}">
<div style="
height: 180px;
background-image: url(/img/blogi/{{blogi.preview_img}});
background-size: cover;
border-radius: .25rm;
border: 2px solid #dee2e6;
"></div>
<h3>{{ blogi.news_title }}</h3></a>
<p class="text_control">{{ blogi.preview }}<a href="{{ site.baseurl }}{{ blogi.url }}"> Loe lisa... </a></p>
</div>
<div class="card-footer text-muted">
Lisanud {{ blogi.author }} {{ blogi.submitted | date: "%d/%m/%Y" }}
</div>
</div>
</div>
{% elsif blogi.article_type == 'juhend' %}
<div class="collapse" id="juhendCollapse" data-parent = "#blogGroup">
<div
class="card"
style="
display: flex;
flex-direction: column;
justify-content: space-between;
"
>
<div class="card-body">
<a href="{{ site.baseurl }}{{ blogi.url }}">
<div style="
height: 180px;
background-image: url(/img/blogi/{{blogi.preview_img}});
background-size: cover;
border-radius: .25rm;
border: 2px solid #dee2e6;
"></div>
<h3>{{ blogi.news_title }}</h3></a>
<p class="text_control">{{ blogi.preview }}<a href="{{ site.baseurl }}{{ blogi.url }}"> Loe lisa... </a></p>
</div>
<div class="card-footer text-muted">
Lisanud {{ blogi.author }} {{ blogi.submitted | date: "%d/%m/%Y" }}
</div>
</div>
</div>
{% else blogi.article_type == 'working_group' %}
<div class="collapse" id="workingCollapse" data-parent = "#blogGroup">
<div
class="card"
style="
display: flex;
flex-direction: column;
justify-content: space-between;
"
>
<div class="card-body">
<a href="{{ site.baseurl }}{{ blogi.url }}">
<div style="
height: 180px;
background-image: url(/img/blogi/{{blogi.preview_img}});
background-size: cover;
border-radius: .25rm;
border: 2px solid #dee2e6;
"></div>
<h3>{{ blogi.news_title }}</h3></a>
<p class="text_control">{{ blogi.preview }}<a href="{{ site.baseurl }}{{ blogi.url }}"> Loe lisa... </a></p>
</div>
<div class="card-footer text-muted">
Lisanud {{ blogi.author }} {{ blogi.submitted | date: "%d/%m/%Y" }}
</div>
</div>
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>