This repository has been archived by the owner on May 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (46 loc) · 1.76 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
---
layout: default
---
<h2 class="visually-hidden">Aktualności</h2>
<div class="news-list">
{% for post in paginator.posts %}
<article class="news js-news hentry">
<h3 class="news--title">
<a href="{{ post.url | prepend: site.baseurl }}" class="entry-title">{{ post.title }}</a>
</h3>
<p class="news--meta">
<span class="news--category">Kategoria: {{ post.categories }}</span>
<span class="news--published">
Data publikacji:
<time datetime="{{ post.date | date: "%Y-%m-%d" }}" class="published">
{{ post.date | polishDate }}
</time>
</span>
</p>
<div class="news--content entry-content">
{% if post.image %}
<img src="{{ post.image }}" class="news--image">
{% endif %}
{{ post.excerpt }}
<p class="news--more">
<a href="{{ post.url | prepend: site.baseurl }}" class="entry-unrelated">Pełny wpis</a>
</p>
</div>
<section class="news__socials hidden js-only entry-unrelated">
<h4 class="news__socials--title">Podziel się</h4>
{% assign news = post %}
{% include partials/socials.html %}
</section>
</article>
{% endfor %}
</div>
{% if paginator.total_pages > 1 %}
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="pagination--previous">Nowsze posty</a>
{% endif %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="pagination--next">Starsze posty</a>
{% endif %}
</div>
{% endif %}