forked from okestonia/opendata.riik.ee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
blogi.html
44 lines (43 loc) · 1.25 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
---
title: Blogi
layout: default
permalink: /blogi/
ref: blog
lang: et
---
{% include breadcrumbs.html %}
<h1>Blogi</h1>
<br>
<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 %}
<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>
{% endfor %}
</div>