Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (38 sloc) 1.32 KB
{% 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 %}