blob: 2d8368b7376b99995a34387e049935f566b5a169 (
plain)
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
|
---
layout: default
---
{%- if page.title -%}
<h1 class="page-heading">{{ page.title }}</h1>
{%- endif -%}
{{ content }}
{%- if site.posts.size > 0 -%}
{% assign paginator = site %}
{%- for post in paginator.posts -%}
{%- assign showsep = false -%}
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
{%- if post.lang == 'de' %} (DE) {%- endif -%}
<div lang="{{ post.lang | default: site.lang | default: "en" }}">
<h2>
{{ post.title | escape }}
</h2>
<span class="post-meta">Published: {{ post.date | date: date_format }}</span>
{%- if forloop.first and paginator.page == 1 or paginator == site -%}
{{ post.content }}
{%- assign showsep = true -%}
{%- elsif site.show_excerpts -%}
{{ post.excerpt }}
{%- assign showsep = true -%}
{%- elsif post.description -%}
{{ post.description }}
{%- assign showsep = true -%}
{%- endif -%}
<a class="post-link" href="{{ post.url | relative_url }}">Link to full post</a>
</div>
{%- if showsep -%}
<hr class="postsep" />
{%- endif -%}
{%- endfor -%}
{%- endif -%}
</div>
|