pedf
/
fakulta-online
Archived
1
0
Fork 0

Obrázek ve stránce se zpracuje do čtverce

master
Emil Miler 4 years ago
parent c211f6a108
commit 3f4a89425e

@ -126,6 +126,7 @@ main {
float: right;
max-width: 48%;
margin-left: 2em;
border-radius: 50%;
}
}

@ -7,7 +7,7 @@
<p>{{ page.description }}</p>
</div>
{% if page.extra.mainimage %}
<img src="{{ page.permalink }}{{ page.extra.mainimage }}" alt="Main image">
<img src="{{ resize_image(path=page.extra.mainimage, width=500, height=500, op="fill") }}" alt="{{ page.extra.mainimage }}">
{% endif %}
</section>
{{ page.content | safe }}