Skip to content

Commit

Permalink
Merge pull request #27 from floede/develop (#26)
Browse files Browse the repository at this point in the history
Updated img syntax
  • Loading branch information
robbinjohansson authored May 18, 2018
2 parents 3bec0f2 + 824357a commit b76ebfc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/item.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

{% if page.header.featured_image %}
<figure class="image is-4by3" style="margin-left: 0; margin-right: 0;">
<img src="{{ page.url }}/{{ page.header.featured_image }}?cropResize=768,576" alt="{{ page.title }}">
{{ page.media[page.header.featured_image].cropZoom(768, 576).html('',page.title|escape)}}
</figure>
{% endif %}

Expand Down
2 changes: 1 addition & 1 deletion templates/partials/post.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{% if post.header.featured_image %}
<div class="media-right">
<figure class="image">
<img src="{{ post.url }}/{{ post.header.featured_image }}?cropResize=160,120" alt="{{ post.title }}">
{{ post.media[post.header.featured_image].cropZoom(160, 120).html('',post.title|escape)}}
</figure>
</div>
{% endif %}
Expand Down

0 comments on commit b76ebfc

Please sign in to comment.