-
Notifications
You must be signed in to change notification settings - Fork 0
/
posts.html
57 lines (45 loc) · 1.4 KB
/
posts.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
---
layout: doodle-background
lang: it
---
{%- if page.title -%}
<h1 class="page-heading">{{ page.title }}</h1>
{%- endif -%}
{%- if site.posts.size > 0 -%}
<ul class="posts posts-page__posts">
{% assign selectedPosts = site.posts | where:"lang", page.lang %}
{%- for post in selectedPosts -%}
<li>
<div class="posts-page__post-container">
{%- assign date_format = site.suci.date_format | default: "%b %-d, %Y" -%}
<a class="post-link" href="{{ post.url | relative_url }}">
<h2 class="post-title">{{ post.title | escape }}</h2>
</a>
<div class="post-meta">
<ul class="post-categories">
{%- for tag in post.categories -%}
<li>{{ tag }}</li>
{%- endfor -%}
</ul>
<div class="post-date">
<i class="icon-calendar"></i>
{{ post.date | date: date_format }}</div>
</div>
<div class="post">
{%- if site.show_excerpts -%}
{{ post.excerpt }}
{%- endif -%}
</div>
</div>
</li>
{%- endfor -%}
</ul>
<!--
<p class="feed-subscribe">
<svg class="svg-icon orange">
<use xlink:href="{{ '/assets/minima-social-icons.svg#rss' | relative_url }}"></use>
</svg>
<a href="{{ "/feed.xml" | relative_url }}">Subscribe</a>
</p>
-->
{%- endif -%}