initial commit, add Publish, add minimal theme, add content

This commit is contained in:
Felix Förtsch
2024-03-24 20:24:51 +01:00
commit cd2f440141
1240 changed files with 194709 additions and 0 deletions
@@ -0,0 +1,53 @@
---
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>