summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--blog/concerts.html40
1 files 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
<h2>Kommende konserter</h2>
-<p>Ingen konserter enda...</p>
+{% for concert in site.concerts %}
+ {% if concert.date >= site.time %}
+ <article class="concert-listing">
+ <header>
+ <date class="date"><a href="{{ concert.url | prepend: site.base_url }}">{{ concert.date | date: "%d/%m-%Y" }}</a></date>
+ <span class="city">{{ concert.city }}</span>
+ <span class="venue">{{ concert.venue }}</span>
+ <span class="comment">{{ concert.comment }}</span>
+ </header>
+ <section class="bands">
+ {{ concert.bands | join: ", " }}
+ </section>
+ </article>
+ {% endif %}
+{% endfor %}
<h2>Tidligere konserter:</h2>
{% for concert in site.concerts %}
- <article class="concert-listing">
- <header>
- <date class="date"><a href="{{ concert.url | prepend: site.base_url }}">{{ concert.date | date: "%d/%m-%Y" }}</a></date>
- <span class="city">{{ concert.city }}</span>
- <span class="venue">{{ concert.venue }}</span>
- <span class="comment">{{ concert.comment }}</span>
- </header>
- <section class="bands">
- {{ concert.bands | join: ", " }}
- </section>
- </article>
+ {% if concert.date < site.time %}
+ <article class="concert-listing">
+ <header>
+ <date class="date"><a href="{{ concert.url | prepend: site.base_url }}">{{ concert.date | date: "%d/%m-%Y" }}</a></date>
+ <span class="city">{{ concert.city }}</span>
+ <span class="venue">{{ concert.venue }}</span>
+ <span class="comment">{{ concert.comment }}</span>
+ </header>
+ <section class="bands">
+ {{ concert.bands | join: ", " }}
+ </section>
+ </article>
+ {% endif %}
{% endfor %}