Skip to content

Commit

Permalink
Set photo centered
Browse files Browse the repository at this point in the history
  • Loading branch information
liyang committed Nov 18, 2024
1 parent c150c2b commit 0e00b28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/_default/_markup/render-image.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
{{ $img_destination = (print .Page.Site.Params.imgCDN.jsdelivr.host (path.Join .Page.File.Dir .Destination)) }}
{{ end }}

<img class="mx-auto" alt="{{ .Text }}" src="{{ $img_destination | safeURL }}" />
<img class="mx-auto" alt="{{ .Text }}" src="{{ $img_destination | safeURL }}" style="margin:0 auto;display:block;"/>

0 comments on commit 0e00b28

Please sign in to comment.