Files
felixfoertsch.de/Content/Archive/220123-ff.de v10 felixfoertsch.github.io/_layouts/index.html
T

53 lines
1.1 KiB
HTML

---
layout: default
---
<div class="row">
<div class="col">
{% for post in paginator.posts %}
<div class="pb-5">
<div class="card bg-dark p-2">
<div class="card-body">
<h2 class="card-title">
<a href="{{ post.url | relative_url }}">
{{ post.title }}
</a>
</h2>
<div class="card-text">
{% include post-meta.html post=post %}
{% if post.excerpt %}
{{ post.excerpt }}
{% else %}
{{ post.content }}
{% endif %}
{% if post.excerpt %}
{% comment %}Excerpt may be equal to content. Check.{% endcomment %}
{% capture content_words %}
{{ post.content | number_of_words }}
{% endcapture %}
{% capture excerpt_words %}
{{ post.excerpt | number_of_words }}
{% endcapture %}
</div>
{% if content_words != excerpt_words %}
<a href="{{ post.url | relative_url }}" class="btn btn-sm btn-secondary">
Read more {% octicon chevron-right height:12 %}
</a>
{% endif %}
{% endif %}
</div>
</div>
</div>
{% endfor %}
<!-- end of paginator -->
</div>
</div>