diff options
| author | Veikka Kähkönen <veikka.kahkonen@corefactory.com> | 2017-11-30 22:59:33 +0200 |
|---|---|---|
| committer | Veikka Kähkönen <veikka.kahkonen@corefactory.com> | 2017-11-30 22:59:33 +0200 |
| commit | 591a0ab2a7e889b829f048ae21810051d4998d3f (patch) | |
| tree | b4e01ba4d1aef5291217b5f8078a757e609ef51b /uutiset.md | |
| parent | 989f806e8591dafc87d0fa0e2b613b74a42145c6 (diff) | |
Clean up Uutiset page
Diffstat (limited to 'uutiset.md')
| -rw-r--r-- | uutiset.md | 33 |
1 files changed, 14 insertions, 19 deletions
@@ -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 %} - |
