adjusted blog layout

This commit is contained in:
Paul Gauthier 2024-05-02 18:03:01 -07:00
parent 54aa208171
commit c48d7be1f6
2 changed files with 5 additions and 4 deletions

View file

@ -14,9 +14,11 @@ layout: default
{{ post.content | strip_html | truncatewords: 100 }}...
{% endif %}
{% if post.highlight_image %}
<div class="post-highlight">
<img src="{{ site.baseurl }}{{ post.highlight_image }}" alt="Highlight Image">
</div>
<a href="{{ site.baseurl }}{{ post.url }}">
<div class="post-highlight">
<img src="{{ site.baseurl }}{{ post.highlight_image }}" alt="Highlight Image">
</div>
</a>
{% endif %}
</div>
</div>