aboutsummaryrefslogtreecommitdiffstats
path: root/nikola/data/themes/base-jinja/templates/gallery.tmpl
blob: 0a53ebe439c7e61e82f58c2afd2175b5db13882c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{#  -*- coding: utf-8 -*- #}
{% extends 'base.tmpl' %}
{% import 'comments_helper.tmpl' as comments with context %}
{% import 'crumbs.tmpl' as ui with context %}
{% block sourcelink %}{% endblock %}

{% block content %}
    {{ ui.bar(crumbs) }}
    {% if title %}
    <h1>{{ title|e }}</h1>
    {% endif %}
    {% if post %}
    <p>
        {{ post.text() }}
    </p>
    {% endif %}
    {% if folders %}
    <ul>
    {% for folder, ftitle in folders %}
        <li><a href="{{ folder }}"><i
        class="icon-folder-open"></i>&nbsp;{{ ftitle }}</a></li>
    {% endfor %}
    </ul>
    {% endif %}
    {% if photo_array %}
    <ul class="thumbnails">
        {% for image in photo_array %}
            <li><a href="{{ image['url'] }}" class="thumbnail image-reference" title="{{ image['title'] }}">
                <img src="{{ image['url_thumb'] }}" alt="{{ image['title'] }}" /></a>
        {% endfor %}
    </ul>
    {% endif %}
{% if site_has_comments and enable_comments %}
    {{ comments.comment_form(None, permalink, title) }}
{% endif %}
{% endblock %}

{% block extra_head %}
{{ super() }}
<link rel="alternate" type="application/rss+xml" title="RSS" href="rss.xml">
{% endblock %}