fix: blog pictures now smaller
This commit is contained in:
parent
d6a8b9328d
commit
9348521308
1 changed files with 15 additions and 11 deletions
|
@ -1,18 +1,22 @@
|
|||
<div class="card">
|
||||
{% set image = page.media.images|first %}
|
||||
{% if image %}
|
||||
<div class="card-image">
|
||||
<a href="{{ page.url }}" class="w-100">{{ image.cropZoom(800,400).html|raw }}</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="card-header mx-0">
|
||||
<div>
|
||||
<div class="card-header mx-0 container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-12 col-sm-9 mb-2">
|
||||
<div class="card-title">
|
||||
{% include 'partials/blog/title.html.twig' with {title_level: 'h5'} %}
|
||||
</div>
|
||||
<div class="text-gray ">
|
||||
<div class="card-subtitle">
|
||||
<small>{% include 'partials/blog/date.html.twig' %}</small>
|
||||
</div>
|
||||
</div>
|
||||
{% if image %}
|
||||
<div class="col-12 col-sm-3">
|
||||
<img src="{{ image.url }}" class="w-100" />
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
{% if page.summary != page.content %}
|
||||
{{ page.summary|raw }}
|
||||
|
|
Loading…
Reference in a new issue