From 99cb2e254104864eb4fb65e4bdd32afe2cb7ed79 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sat, 25 Feb 2017 23:23:27 +0100 Subject: Update concerts page to list both upcoming and past gigs. --- blog/concerts.html | 40 ++++++++++++++++++++++++++++------------ 1 file changed, 28 insertions(+), 12 deletions(-) diff --git a/blog/concerts.html b/blog/concerts.html index ad8b58c..5a51aee 100644 --- a/blog/concerts.html +++ b/blog/concerts.html @@ -7,20 +7,36 @@ title: titles.concerts

Kommende konserter

-

Ingen konserter enda...

+{% for concert in site.concerts %} + {% if concert.date >= site.time %} +
+
+ {{ concert.date | date: "%d/%m-%Y" }} + {{ concert.city }} + {{ concert.venue }} + {{ concert.comment }} +
+
+ {{ concert.bands | join: ", " }} +
+
+ {% endif %} +{% endfor %}

Tidligere konserter:

{% for concert in site.concerts %} -
-
- {{ concert.date | date: "%d/%m-%Y" }} - {{ concert.city }} - {{ concert.venue }} - {{ concert.comment }} -
-
- {{ concert.bands | join: ", " }} -
-
+ {% if concert.date < site.time %} +
+
+ {{ concert.date | date: "%d/%m-%Y" }} + {{ concert.city }} + {{ concert.venue }} + {{ concert.comment }} +
+
+ {{ concert.bands | join: ", " }} +
+
+ {% endif %} {% endfor %} -- cgit v1.2.3