From 2cc4273ae746e68dee751471bcd0bf1c521850d0 Mon Sep 17 00:00:00 2001 From: Veikka Kähkönen Date: Thu, 30 Nov 2017 00:55:12 +0200 Subject: Add event list to index page --- _sass/_info.scss | 29 ++++++++++++++++++++++++++++- index.html | 34 ++++++++++++++++++++++++++++++++-- 2 files changed, 60 insertions(+), 3 deletions(-) diff --git a/_sass/_info.scss b/_sass/_info.scss index 454fd51..84ef42e 100644 --- a/_sass/_info.scss +++ b/_sass/_info.scss @@ -1,3 +1,5 @@ +$info_item_separation: 0.9em; + .info_section { margin-bottom: 1.5em; } @@ -18,5 +20,30 @@ } .post_list__element { - margin-bottom: 0.4em; + margin-bottom: $info_item_separation; +} + +.post_list__excerpt { + margin-bottom: 0; +} + +.event_list { + list-style-type: none; + margin-left: 0; +} + +.event_list__row { + display: block; + width: 100%; +} + +.event_list .summary { + @extend h4; + @extend .event_list__row; + margin-bottom: 0; +} + +.event_list .description { + @extend .event_list__row; + margin-bottom: $info_item_separation; } diff --git a/index.html b/index.html index 21543be..1a6845c 100644 --- a/index.html +++ b/index.html @@ -20,7 +20,7 @@ layout: default -

+

{{ post.excerpt | strip_html }} Lisää...

@@ -33,7 +33,14 @@ layout: default

Tulevat tapahtumat

- Tapahtumia. +
    +
+
    +
+ + + Kaikki tapahtumat +
@@ -48,3 +55,26 @@ layout: default
+ + + + -- cgit v1.3