make better room for news

This commit is contained in:
sakrecoer 2020-05-22 17:38:25 +02:00
parent 06ccf8a100
commit ddc4cd437d
3 changed files with 63 additions and 48 deletions

13
_includes/past-news.html Normal file
View file

@ -0,0 +1,13 @@
{% assign count = site.posts | size %}
{% if count > 1 %}
<br />
<h3>Äldre inlägg</h3>
{% for post in site.posts | offset: 1%}
<div class="pastevents" {% if forloop.last == true %}style="border:none"{% endif %}>
<p>{{ post.date | date: '%Y-%m-%d' }}<br />
<a href="{{ event.url }}"><strong>{{ post.title }}</strong></a>
</p>
</div> {% endfor %}
{% endif %}