aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVeikka Kähkönen <veikka.kahkonen@corefactory.com>2017-11-30 22:59:33 +0200
committerVeikka Kähkönen <veikka.kahkonen@corefactory.com>2017-11-30 22:59:33 +0200
commit591a0ab2a7e889b829f048ae21810051d4998d3f (patch)
treeb4e01ba4d1aef5291217b5f8078a757e609ef51b
parent989f806e8591dafc87d0fa0e2b613b74a42145c6 (diff)
Clean up Uutiset page
-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 %}
-