Fancybox gallery
This commit is contained in:
26
templates/gallery.html
Normal file
26
templates/gallery.html
Normal file
@ -0,0 +1,26 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block style %}
|
||||
<link rel="stylesheet" href="{{ get_url(path="fancybox/fancybox.css") }}">
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<section class="gallery wrap narrow centering">
|
||||
<h1>{{ page.title }}</h1>
|
||||
<span class="subtitle">
|
||||
{% if page.extra.beh %}
|
||||
{{ page.extra.beh }}. běh
|
||||
{%- endif -%}
|
||||
{{ page.date | date(format="%Y") }}
|
||||
</span>
|
||||
{{ page.content | safe }}
|
||||
</section>
|
||||
<section class="gallery wrap grid grid-4 grid-mobile-3">
|
||||
{{ macros::gallery(page=page) }}
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
||||
{% block script %}
|
||||
<script src="{{ get_url(path="fancybox/fancybox.js") }}"></script>
|
||||
<script>Fancybox.bind("[data-fancybox]", {});</script>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user