Skip to content

Commit

Permalink
Format date in news and limit to 5 cards
Browse files Browse the repository at this point in the history
  • Loading branch information
webrian committed Dec 7, 2023
1 parent 55970ad commit 75381ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions de/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,12 @@ <h2>Hilfe zu QGIS finden</h2>
<h2>Neuigkeiten</h2>
</div>
<div class="col-md-12">
{% for post in site.posts %}
{% for post in site.posts limit:5 %}
{% if post.lang == "de" %}
<div class="card mb-1 mt-1"> <!-- style="width: 18rem;"-->
<div class="card-body">
<h5 class="card-title">{{ post.title }}</h5>
<h6 class="card-subtitle mb-2 text-body-secondary">veröffentlicht am {{ post.date }}</h6>
<h6 class="card-subtitle mb-2 text-body-secondary">veröffentlicht am {{ post.date | date: "%d. %b %Y"}}</h6>
<p class="card-text">{{ post.excerpt }}</p>
<a href="{{ post.url }}" class="card-link">Weiter lesen</a>
</div>
Expand Down

0 comments on commit 75381ee

Please sign in to comment.