pedf
/
fakulta-online
Archived
1
0
Fork 0

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

master
Emil Miler 5 years ago
parent c211f6a108
commit 3f4a89425e

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

@ -7,7 +7,7 @@
<p>{{ page.description }}</p> <p>{{ page.description }}</p>
</div> </div>
{% if page.extra.mainimage %} {% 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 %} {% endif %}
</section> </section>
{{ page.content | safe }} {{ page.content | safe }}