aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOnni Lampi <contact@onnilampi.fi>2017-07-07 02:08:56 +0300
committerVeikka Kähkönen <insiding@gmail.com>2017-11-27 22:46:36 +0200
commitc08dbdd77b85ee794f36caf50113b910883edc09 (patch)
tree99d1c822387c8224d50b1d69868fdb06802f380b
parent0dd950472d772f48b568b505ab765162fcae1286 (diff)
Uutiset implementoitu
-rw-r--r--_posts/2015-07-07-dankness.md19
-rw-r--r--_posts/2016-07-07-dankness.md19
-rw-r--r--_posts/2017-01-09-dankness.md19
-rw-r--r--_posts/2017-07-04-dankness.md19
-rw-r--r--_posts/2017-07-05-dankness.md19
-rw-r--r--_posts/2017-07-06-dankness.md19
-rw-r--r--_posts/2017-07-07-dankness.md19
-rw-r--r--index.html8
-rw-r--r--uutiset.md25
9 files changed, 165 insertions, 1 deletions
diff --git a/_posts/2015-07-07-dankness.md b/_posts/2015-07-07-dankness.md
new file mode 100644
index 0000000..82cd7a2
--- /dev/null
+++ b/_posts/2015-07-07-dankness.md
@@ -0,0 +1,19 @@
+---
+layout: page
+title: "Dank title for this article"
+date: 2015-07-07 00:00:00 +0300
+permalink: /uutiset/dank1
+language: fin
+author: "Dank Drankfors"
+categories: esimerkki juttu asd
+---
+*Dank ingress*
+
+
+## Dank title
+
+Dank content
+
+### Dank small title
+
+Dank special content
diff --git a/_posts/2016-07-07-dankness.md b/_posts/2016-07-07-dankness.md
new file mode 100644
index 0000000..f34b6ab
--- /dev/null
+++ b/_posts/2016-07-07-dankness.md
@@ -0,0 +1,19 @@
+---
+layout: page
+title: "Dank title for this article"
+date: 2016-07-07 00:00:00 +0300
+permalink: /uutiset/dank2
+language: fin
+author: "Dank Drankfors"
+categories: esimerkki juttu asd
+---
+*Dank ingress*
+
+
+## Dank title
+
+Dank content
+
+### Dank small title
+
+Dank special content
diff --git a/_posts/2017-01-09-dankness.md b/_posts/2017-01-09-dankness.md
new file mode 100644
index 0000000..444eee5
--- /dev/null
+++ b/_posts/2017-01-09-dankness.md
@@ -0,0 +1,19 @@
+---
+layout: page
+title: "Dank title for this article"
+date: 2017-01-10 00:00:00 +0300
+permalink: /uutiset/dank7
+language: fin
+author: "Dank Drankfors"
+categories: esimerkki juttu asd
+---
+*Dank ingress*
+
+
+## Dank title
+
+Dank content
+
+### Dank small title
+
+Dank special content
diff --git a/_posts/2017-07-04-dankness.md b/_posts/2017-07-04-dankness.md
new file mode 100644
index 0000000..c40904b
--- /dev/null
+++ b/_posts/2017-07-04-dankness.md
@@ -0,0 +1,19 @@
+---
+layout: page
+title: "Dank title for this article"
+date: 2017-07-04 00:00:00 +0300
+permalink: /uutiset/dank6
+language: fin
+author: "Dank Drankfors"
+categories: esimerkki juttu asd
+---
+*Dank ingress*
+
+
+## Dank title
+
+Dank content
+
+### Dank small title
+
+Dank special content
diff --git a/_posts/2017-07-05-dankness.md b/_posts/2017-07-05-dankness.md
new file mode 100644
index 0000000..6d503f1
--- /dev/null
+++ b/_posts/2017-07-05-dankness.md
@@ -0,0 +1,19 @@
+---
+layout: page
+title: "Dank title for this article"
+date: 2017-07-05 00:00:00 +0300
+permalink: /uutiset/dank5
+language: fin
+author: "Dank Drankfors"
+categories: esimerkki juttu asd
+---
+*Dank ingress*
+
+
+## Dank title
+
+Dank content
+
+### Dank small title
+
+Dank special content
diff --git a/_posts/2017-07-06-dankness.md b/_posts/2017-07-06-dankness.md
new file mode 100644
index 0000000..5eb0b97
--- /dev/null
+++ b/_posts/2017-07-06-dankness.md
@@ -0,0 +1,19 @@
+---
+layout: page
+title: "Dank title for this article"
+date: 2017-07-06 00:00:00 +0300
+permalink: /uutiset/dank4
+language: fin
+author: "Dank Drankfors"
+categories: esimerkki juttu asd
+---
+*Dank ingress*
+
+
+## Dank title
+
+Dank content
+
+### Dank small title
+
+Dank special content
diff --git a/_posts/2017-07-07-dankness.md b/_posts/2017-07-07-dankness.md
new file mode 100644
index 0000000..ed71600
--- /dev/null
+++ b/_posts/2017-07-07-dankness.md
@@ -0,0 +1,19 @@
+---
+layout: page
+title: "Dank title for this article"
+date: 2017-07-07 00:00:00 +0300
+permalink: /uutiset/dank3
+language: fin
+author: "Dank Drankfors"
+categories: esimerkki juttu asd
+---
+*Dank ingress*
+
+
+## Dank title
+
+Dank content
+
+### Dank small title
+
+Dank special content
diff --git a/index.html b/index.html
index 06bf6c6..07fd0e9 100644
--- a/index.html
+++ b/index.html
@@ -19,6 +19,12 @@ layout: default
<p>look around you</p>
+<h1>Uusimpia uutisia:</h1>
+{%for post in site.posts limit:5 %}
+<li><a href="{{ site.baseurl}}{{ post.url }}">{{ post.date | date: "%d.%m.%Y" }} - {{ post.title }}</a></li>
+{% endfor %}
+<li><a href="{{ site.baseurl}}/uutiset">Lisää uutisia uutisarkistossa</a></li>
+
</div>
@@ -69,4 +75,4 @@ layout: index_page
<div><a href="http://www.eficode.fi/"><img width="200" style="margin:20px;border:0;" src="/static/sponsors/eficode.png" alt=""></a></div>
</div>
---> \ No newline at end of file
+-->
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 %}
+