simple_gallery

Generate simple, static HTML/CSS gallery
Log | Files | Refs | README

base.html (1113B)


      1 {# base.html #}
      2  <!DOCTYPE html>
      3  <html lang="en">
      4      <head>
      5          <title>{% block title %}{% endblock %}</title>
      6          <meta charset="utf-8">
      7          <meta name="viewport" content="width=device-width, initial-scale=1.0">
      8          <link rel="stylesheet" href="{{ rootdir }}/css/stylesheet.css">
      9      </head>
     10      <body {% block bodyclass %}class="{{ bodyclass }}"{% endblock %}>
     11         {% if navbar %}
     12         <div id="navbar">
     13         {% block navbar %}
     14             <a class="np half" href="{{ previ }}"></a>
     15             <a class="right np half" href="{{ nexti }}"></a>
     16         {% endblock %}
     17         </div>
     18         {% endif %}
     19         {% block content %}
     20         <div class="view-container">
     21             <a href="{{ imgpath + img }}">
     22                 <img class="viewer" src="{{ imgpath + img }}">
     23             </a>
     24         </div>
     25         <p class="desc">{{ exif }}</p>
     26         {% endblock %}
     27      </body>
     28     <footer>
     29         <p>
     30         {% for l in links %}
     31         | <a href="{{ l['link'] }}">{{ l['text'] }}</a>
     32         {% endfor %}
     33         </p>
     34         <p>{{ byline }}</p>
     35     </footer>
     36  </html>