-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpost.html
42 lines (38 loc) · 1.32 KB
/
post.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
{% assign post = include.post %}
{% assign standalone = include.standalone %}
{% assign indieactions = include.indieactions %}
{% assign container = include.container %}
{% assign swedish = false %}
{% assign nonenglish = false %}
{% if post.lang == null or post.lang == 'sv' %}
{% assign swedish = true %}
{% endif %}
{% if post.lang != 'en' %}
{% assign nonenglish = true %}
{% endif %}
{% if container == null %}
{% assign container = 'div' %}
{% endif %}
{% if post.category == null and standalone != true %}
<{{ container }} class="h-entry blog-article-summary">
<a
{% if swedish == true %}
lang="sv"
{% elsif nonenglish == true %}
lang="{{ post.lang }}"
{% endif %}
class="u-url u-uid p-name"
href="{{ post.url }}"
>{{ post.title }}</a>
<time class="dt-published" datetime="{{ post.date | date_to_xmlschema }}" pubdate>
- {{ post.date | date_to_string }}
</time>
<span class="time-to-read">
- {{ post.content | strip_html | split: ' ' | size | divided_by: 275 | round }} min read
</span>
</{{ container }}>
{% elsif post.mf-like-of != null %}
{% include post-like.html post=post standalone=standalone indieactions=indieactions %}
{% else %}
{% include post-content.html post=post standalone=standalone indieactions=indieactions %}
{% endif %}