Skip to content
Snippets Groups Projects
Commit bc77e9d0 authored by jan.bednarik's avatar jan.bednarik
Browse files

donate: Hide video link when there is no video

parent 539f06ce
No related branches found
No related tags found
No related merge requests found
......@@ -24,10 +24,14 @@
</div><!-- /column -->
<div class="col-12 col-lg-5 pl-xl-5 text-center">
{% image page.lead_preview width-500 as lead_preview %}
{% if page.lead_video %}
<a data-fancybox="" href="{{ page.lead_video }}" title="Přehrát video">
{% image page.lead_preview width-500 as lead_preview %}
<img class="img-fluid lazyload" data-src="{{ lead_preview.url }}" alt="Náhled videa">
</a>
{% else %}
<img class="img-fluid lazyload" data-src="{{ lead_preview.url }}" alt="Náhled videa">
{% endif %}
</div><!-- /column -->
</div> <!-- /row -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment