Skip to content
Snippets Groups Projects
Commit 2b43fde8 authored by jarmil's avatar jarmil
Browse files

Gallerie do stranky program2021 programovy bod

parent fab9d339
Branches
No related tags found
2 merge requests!137Sync test,!126Program gallery
{% load static wagtailcore_tags wagtailmetadata_tags %}
{% load static wagtailcore_tags wagtailimages_tags wagtailmetadata_tags %}
<!doctype html>
<html lang="en">
<head>
......
{% extends "program2021/base.html" %}
{% load wagtailimages_tags wagtailcore_tags %}
{% load static wagtailimages_tags wagtailcore_tags %}
{% block content %}
<div class="container">
......@@ -88,7 +89,17 @@
<p>{{ page.sources|richtext }}</p>
</div>
<div class="w-100 my-4"></div>
{% if page.images %}
<div class="row about-images mb-5 mt-3 jumbotron">
{% for block in page.images %}
{% image block.value width-2000 as img %}
{% image block.value fill-300x200 as thumb %}
<div class="col-6 col-md-3 mb-4">
<a data-fancybox="gallery" href="{{ img.url }}"><img data-src="{{ thumb.url }}" class="lazyload img-fluid" alt="{{ thumb.alt }}"></a>
</div><!-- /column -->
{% endfor %}
</div><!-- /row -->
{% endif %}
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment