From 779991754aedbc26b71d1410d258e44bf754ac23 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 25 Nov 2014 19:55:20 -0500 Subject: Add screenshot gallery to main page. --- themes/lv2/templates/base.html | 18 ++++++++++-------- themes/lv2/templates/page.html | 12 ++++++++++++ 2 files changed, 22 insertions(+), 8 deletions(-) (limited to 'themes/lv2/templates') diff --git a/themes/lv2/templates/base.html b/themes/lv2/templates/base.html index a3ca785..00f066d 100644 --- a/themes/lv2/templates/base.html +++ b/themes/lv2/templates/base.html @@ -1,13 +1,15 @@ - {% block title %}{{ SITENAME }}{%endblock%} - - - - {% if FEED_RSS %} - - {% endif %} + {% block head %} + {% block title %}{{ SITENAME }}{%endblock%} + + + + {% if FEED_RSS %} + + {% endif %} + {% endblock %} @@ -23,7 +25,7 @@ {% endif %} - + {% for title, link in MENUITEMS %}
  • {{ title }}
  • {% endfor %} diff --git a/themes/lv2/templates/page.html b/themes/lv2/templates/page.html index 33f6aca..762dd27 100644 --- a/themes/lv2/templates/page.html +++ b/themes/lv2/templates/page.html @@ -1,4 +1,8 @@ {% extends "base.html" %} +{% block head %} + {{ super() }} + +{% endblock %} {% block title %} {% if page.title %} {{ page.title }} @@ -13,4 +17,12 @@ {% endif %} {{ page.content }} + {% if page.gallery %} +
    + {% for photo_set in page.gallery.photos %} + {{ photo_set['slider'].src }} + {% endfor %} +
    + + {% endif %} {% endblock %} -- cgit v1.2.1