{% comment %}If youtube video id is provided, it takes precendece over the image{% endcomment %} {%- if include.youtubeVideoId %} {% include youtube.html width="100%" id=include.youtubeVideoId %} {% else %} {% if site.mediaStorage %} {% capture imgPath %}https://a.pirati.cz/crop/1200x675/{{ site.mediaStorage }}/img/{{ include.image }}{% endcapture %} {% else %} {% capture imgPath %}{% asset '{{ include.image }}' magick:resize='1200x675^' magick:gravity='center' magick:crop='1200x675+0+0' @path %}{% endcapture %} {% endif %}
{{ include.title }}
{%- endif %}