-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
67 lines (61 loc) · 3.21 KB
/
Copy pathindex.html
File metadata and controls
67 lines (61 loc) · 3.21 KB
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
---
layout: default
robots: index,follow
---
<div class="main-post-list">
{% assign pinned_posts = site.posts | where: "pinned", true | where_exp: "p", "p.hidden != true" %}
{% if pinned_posts.size > 0 %}
<p class="post-list-section-title">About</p>
<ol class="post-list post-list--pinned">
{% for post in pinned_posts %}
<li>
<h2 class="post-list__post-title post-title"><a href="{{ site.baseurl }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h2>
<p class="excerpt">{{ post.excerpt | strip_html }}…</p>
<div class="post-list__meta">
{% if post.lang %}
{% assign translations = site.posts | where: "lang_ref", post.lang_ref | where_exp: "p", "p.url != post.url" %}
{% if translations.size > 0 %}
<span class="post-meta__langs">🌐 also in {% for t in translations %}<a href="{{ site.baseurl }}{{ t.url }}" hreflang="{{ t.lang }}">{% if t.lang == "de" %}Deutsch{% elsif t.lang == "en" %}English{% else %}{{ t.lang }}{% endif %}</a> {% endfor %}</span>
{% endif %}
{% endif %}
</div>
<hr class="post-list__divider">
</li>
{% endfor %}
</ol>
{% endif %}
<p class="post-list-section-title">Beyond Work</p>
<ol class="post-list">
{% for post in paginator.posts %}
{% if post.hidden or post.pinned %}{% continue %}{% endif %}
<li>
{% if post.external_url %}
<h2 class="post-list__post-title post-title"><i class="icon icon-link"></i> <a href="{{ post.external_url }}" title="{{ post.title }}" target="_blank">{{ post.title }}</a></h2>
{% else %}
<h2 class="post-list__post-title post-title"><a href="{{ site.baseurl }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h2>
{% endif %}
<p class="excerpt">{{ post.excerpt | strip_html }}…</p>
<div class="post-list__meta">
{% if post.source_url %}
<span class="post-meta__source">source <a href="{{ post.source_url }}" target="_blank">{{ post.source_url }}</a></span><br>
{% endif %}
<time datetime="{{ post.date | date: "%Y-%m-%d %H:%M" }}" class="post-list__meta--date date">{{ post.date | date: "%-d %b %Y" }}</time>
{% if post.tags.size > 0 %}
• <span class="post-meta__tags">on {% for tag in post.tags %}<a href="{{ site.baseurl }}/tags/#{{ tag }}">{{ tag }}</a> {% endfor %}</span>
{% endif %}
{% if post.lang %}
{% assign translations = site.posts | where: "lang_ref", post.lang_ref | where_exp: "p", "p.url != post.url" %}
{% if translations.size > 0 %}
• <span class="post-meta__langs">🌐 also in {% for t in translations %}<a href="{{ site.baseurl }}{{ t.url }}" hreflang="{{ t.lang }}">{% if t.lang == "de" %}Deutsch{% elsif t.lang == "en" %}English{% else %}{{ t.lang }}{% endif %}</a> {% endfor %}</span>
{% endif %}
{% endif %}
</div>
<hr class="post-list__divider">
</li>
{% endfor %}
</ol>
<hr class="post-list__divider ">
{% if paginator.previous_page or paginator.next_page %}
{% include pagination.html %}
{% endif %}
</div>