Skip to content

Commit

Permalink
fix(seo): attempt to adapt images + small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
scalastic committed Jul 10, 2023
1 parent 90d7328 commit e75609b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@
{% if page.img -%}
<div class="page-cover-image">
<figure>
{% picture {{ "/assets/img/" | prepend: site.baseurl | append : page.img}} center --alt {{page.title}} --class page-image %}
{%
picture
top-image-post
{{ "/assets/img/" | prepend: site.baseurl | append : page.img}} 16:9 center
mobile: {{ "/assets/img/" | prepend: site.baseurl | append : page.img}} 4:3 center
--alt {{page.title}} --class page-image
%}
{% if page.fig-caption -%}
<figcaption>{{page.fig-caption}}</figcaption>
{%- endif %}
Expand Down

0 comments on commit e75609b

Please sign in to comment.