diff options
| author | Veikka Kähkönen <insiding@gmail.com> | 2017-11-27 22:47:46 +0200 |
|---|---|---|
| committer | Veikka Kähkönen <insiding@gmail.com> | 2017-11-27 22:47:46 +0200 |
| commit | df4d2a345886f0114684358a91c9b4ba2fc8cb73 (patch) | |
| tree | 99d1c822387c8224d50b1d69868fdb06802f380b /uutiset.md | |
| parent | 0dd950472d772f48b568b505ab765162fcae1286 (diff) | |
| parent | c08dbdd77b85ee794f36caf50113b910883edc09 (diff) | |
Merge branch 'uutiset'
Diffstat (limited to 'uutiset.md')
| -rw-r--r-- | uutiset.md | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/uutiset.md b/uutiset.md new file mode 100644 index 0000000..e285f5a --- /dev/null +++ b/uutiset.md @@ -0,0 +1,25 @@ +--- +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> +{% endfor %} + |
