Skip to content

Commit

Permalink
feat: add img to post
Browse files Browse the repository at this point in the history
  • Loading branch information
rise-erpelding committed Oct 24, 2023
1 parent fe6cf3b commit 25daafa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/php/views/page.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
{% block content %}

<div class="obj-width-limiter">
<img
src="{{ post.thumbnail.src|resize(1024) }}"
{% if post.thumbnail.alt and post.thumbnail.alt|length > 0 %}
alt="{{ post.thumbnail.alt }}"
{% endif %}
/>
{{ post.content }}
</div>

Expand Down

0 comments on commit 25daafa

Please sign in to comment.