<!doctype html>
<html lang="en" class="no-js">
  <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

    <title>{{ title }}</title>
    <meta name="description" content="">
    <meta name="author" content="{{ author }}">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <link rel="shortcut icon" href="/favicon.ico">
    <link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Molengo'>
    <link rel="stylesheet" href="{{ theme.path }}/css/style.css?v=2">
    <!-- <link rel="stylesheet" media="handheld" href="css/handheld.css?v=2"> -->
    <!--[if lt IE 9]>
	<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
  </head>
  <body>
    <div id="container">
      <header>
          <h1>{{ paths }}</h1>
        <!-- <h1><a href="{{ home_path }}">{{ gallery_name }}</a>{% if title %} - {{ title }}{% endif %}</h1> -->
      </header>

      <div id="main" role="main">
        {% if albums %}
        <div id="albums">
          <!-- <h1>Albums</h1> -->
          <ul>
            {% for album in albums %}
            <li><a href="{{ album.path }}">
              <img src="{{ album.thumb }}" class="album_thumb" alt="{{ album.name }}" title="{{ album.name }}" /></a>
              <span class="album_title">{{ album.title }}</span>
            </li>
            {% endfor %}
          </ul>
        </div>
        {% endif %}

        {% if images %}
        <div id="gallery">
          {% for image in images %}
          <a href="{{ image.file }}"><img src="{{ image.thumb }}" alt="{{ image.file }}" /></a>
          {% endfor %}
        </div>
        {% endif %}

        {% if description %}
        <div id="description">
          <h1>Description</h1>
          <p>{{ description }}</p>
        </div>
        {% endif %}
      </div>

      <footer>
        <p>{% if author %}&copy; {{ author }} - {% endif %}Generated by {{ sigal_link }}. </p>
      </footer>
    </div>

    <!-- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> -->
    <!-- <script>!window.jQuery && document.write(unescape('%3Cscript src="{{ theme.path }}/js/libs/jquery-1.5.1.min.js"%3E%3C/script%3E'))</script> -->
    <!-- <script src="js/script.js"></script> -->
    <script src="{{ theme.path }}/js/jquery.min.js"></script>
    <script src="{{ theme.path }}/js/galleria-1.2.3.min.js"></script>
    <script>
    // Load the classic theme
    Galleria.loadTheme('{{ theme.path }}/js/galleria.classic.min.js');

    // Initialize Galleria
    $("#gallery").galleria({
        height: 600,
        transition: 'fade'
    });
    </script>
  </body>
</html>
