aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--uutiset.md33
1 files changed, 14 insertions, 19 deletions
diff --git a/uutiset.md b/uutiset.md
index e285f5a..997670a 100644
--- a/uutiset.md
+++ b/uutiset.md
@@ -3,23 +3,18 @@ layout: page
title: Uutiset
permalink: /uutiset/
---
-## Uutisia
-
-Tässä jotain saatetekstiä uutisille
-
-{%for post in site.posts %}
-{% unless post.next %}
-<h1>{{ post.date | date: '%Y' }}</h1>
-<ul>
-{% else %}
-{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
-{% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
-{% if year != nyear %}
-</ul>
-<h1>{{ post.date | date: '%Y' }}</h1>
-<ul>
-{% endif %}
-{% endunless %}
-<li><a href="{{ site.baseurl}}{{ post.url }}">{{ post.date | date: "%d.%m.%Y" }} - {{ post.title }}</a></li>
+{% for post in site.posts %}
+ {% unless post.next %}
+ <h1>{{ post.date | date: '%Y' }}</h1>
+ <ul>
+ {% else %}
+ {% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
+ {% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
+ {% if year != nyear %}
+ </ul>
+ <h1>{{ post.date | date: '%Y' }}</h1>
+ <ul>
+ {% endif %}
+ {% endunless %}
+ <li><a href="{{ site.baseurl}}{{ post.url }}">{{ post.date | date: "%d.%m.%Y" }} - {{ post.title }}</a></li>
{% endfor %}
-