diff options
author | David Robillard <d@drobilla.net> | 2014-11-25 19:55:20 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-11-25 19:55:20 -0500 |
commit | 779991754aedbc26b71d1410d258e44bf754ac23 (patch) | |
tree | 615ce8f82b71453fa37bfc504843ef729f9baabe /themes/lv2/templates/page.html | |
parent | e70619f71410c6b182c733779a29874be13be110 (diff) | |
download | lv2site-779991754aedbc26b71d1410d258e44bf754ac23.tar.xz |
Add screenshot gallery to main page.
Diffstat (limited to 'themes/lv2/templates/page.html')
-rw-r--r-- | themes/lv2/templates/page.html | 12 |
1 files changed, 12 insertions, 0 deletions
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() }} + <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/slideshow.css" /> +{% endblock %} {% block title %} {% if page.title %} {{ page.title }} @@ -13,4 +17,12 @@ {% endif %} </header> {{ page.content }} + {% if page.gallery %} + <div id="slideshow"> + {% for photo_set in page.gallery.photos %} + <img src="{{ SITEURL }}/{{ photo_set['slider'].src }}" alt="{{ photo_set['slider'].src }}" /> + {% endfor %} + </div> + <script type="text/javascript" src="{{ SITEURL }}/theme/js/slideshow.js"></script> + {% endif %} {% endblock %} |