forked from jitka/jekyll-theme-pirati
-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
V commitu bcfbe22 je chybně zachytávání obrázků v podmínce na zapnutí mediaStorage. Pokud je zapnutý, zachytí to cestu, pokud vypnutý, zachytí celý tag . Díky tomu nefungují například profilové obrázky. Viz např https://praha12.pirati.cz/lide/matej-mlcoch/
Například right-bar/bar_foto.html se dá opravit následovně, ale chtělo by to opravit na všech místech stejným způsobem (a na to nemám kapacitu).
{% if page.img %}
{% if site.mediaStorage %}
{% capture img_tag %} <img src="https://a.pirati.cz/resize/225x225/{{ site.mediaStorage }}/img/{{ page.img }}" alt="{{ page.name }}">{% endcapture %}
{%- else -%}
{% capture img_tag %}{% asset '{{ page.img }}' alt='{{ page.name }}' magick:resize='350x' class='c-person-image' %}{% endcapture %}
{%- endif -%}
{% if page.profiles.flickr %}
<div class="c-widget-accordion-content__cta"> </div>
<div class="o-section-block">
<ul class="c-widget-accordion" data-accordion="" data-allow-all-closed="true">
<li class="c-widget-accordion-item is-active" data-accordion-item="">
<div class="c-widget-accordion-content" data-tab-content="">
{{ img_tag }}
<div class="c-widget-accordion-content__cta">
{% assign peopleCol = site.collections | where: "label", "people" | first %}
<a class="expanded button large u-0margin" href="{{page.profiles.flickr}}"> Zobrazit více fotografií </a>
</div>
</div>
</li>
</ul>
</div>
{% else %}
{{ img_tag }}
{% endif %}
{% endif %}
Metadata
Metadata
Assignees
Labels
No labels