--- layout: default --- {% if page.heroImg %} {% if site.mediaStorage %} {% capture imgPath %}https://a.pirati.cz/{{ site.mediaStorage }}/img/{{ page.heroImg }}{% endcapture %} {% else %} {% capture imgPath %}{% asset '{{ page.heroImg }}' @path %}{% endcapture %} {% assign imgPath = imgPath | absolute_url %} {% endif %} {% elsif page.img %} {% if site.mediaStorage %} {% capture imgPath %}https://a.pirati.cz/{{ site.mediaStorage }}/img/{{ page.img }}{% endcapture %} {% else %} {% capture imgPath %}{% asset '{{ page.img }}' @path %}{% endcapture %} {% assign imgPath = imgPath | absolute_url %} {% endif %} {% endif %} {% capture personName %}{% include people/fullname.html person=page %}{% endcapture %} {% include hero/simple.html headline=personName description=page.profession headlineClass="text-center lg:text-left mx-auto" descriptionClass="max-w-xl mx-auto text-center lg:text-left" heroSpacing="pt-16 pb-24 lg:pt-32 pb-24" class="candidate-detail__hero" bgImg=imgPath %}