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 | |
parent | e70619f71410c6b182c733779a29874be13be110 (diff) | |
download | lv2site-779991754aedbc26b71d1410d258e44bf754ac23.tar.xz |
Add screenshot gallery to main page.
Diffstat (limited to 'themes/lv2/templates')
-rw-r--r-- | themes/lv2/templates/base.html | 18 | ||||
-rw-r--r-- | themes/lv2/templates/page.html | 12 |
2 files changed, 22 insertions, 8 deletions
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 @@ <!DOCTYPE html> <html lang="en"> <head> - <title>{% block title %}{{ SITENAME }}{%endblock%}</title> - <meta charset="utf-8" /> - <link rel="stylesheet" href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}" type="text/css" /> - <link href="{{ SITEURL }}/{{ FEED }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} ATOM Feed" /> - {% if FEED_RSS %} - <link href="{{ SITEURL }}/{{ FEED_RSS }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" /> - {% endif %} + {% block head %} + <title>{% block title %}{{ SITENAME }}{%endblock%}</title> + <meta charset="utf-8" /> + <link rel="stylesheet" href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}" type="text/css" /> + <link href="{{ SITEURL }}/{{ FEED }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} ATOM Feed" /> + {% if FEED_RSS %} + <link href="{{ SITEURL }}/{{ FEED_RSS }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" /> + {% endif %} + {% endblock %} </head> <body> @@ -23,7 +25,7 @@ {% endif %} </a> </li> - + {% for title, link in MENUITEMS %} <li><a href="{{ link }}">{{ title }}</a></li> {% 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() }} + <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 %} |