diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2017-02-25 23:23:27 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2017-02-25 23:23:27 +0100 |
commit | 99cb2e254104864eb4fb65e4bdd32afe2cb7ed79 (patch) | |
tree | 0f5b2383936b1d1cfaf78820847cb011352a826c /blog/concerts.html | |
parent | eb4833cabc57ffc2861b7e5beaf15f905c06ab8a (diff) | |
download | norsk-urskog-main-99cb2e254104864eb4fb65e4bdd32afe2cb7ed79.tar.gz norsk-urskog-main-99cb2e254104864eb4fb65e4bdd32afe2cb7ed79.tar.bz2 norsk-urskog-main-99cb2e254104864eb4fb65e4bdd32afe2cb7ed79.zip |
Update concerts page to list both upcoming and past gigs.
Diffstat (limited to 'blog/concerts.html')
-rw-r--r-- | blog/concerts.html | 40 |
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 %} |