🐛 Fix inconsistent picture rendering when using Markdown

Fixes: #828
This commit is contained in:
James Panther
2024-04-29 16:38:36 +10:00
parent 2468e3b21e
commit c20e2338a8
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
{{ $altText := .Get "alt" }}
{{ $caption := .Get "caption" }}
{{ $href := .Get "href" }}
{{ $class := .Get "class" }}
{{ $class := default "mx-auto my-0 rounded-md" (.Get "class") }}
{{ $file := $url.Path }}
{{ $img := .Page.Resources.GetMatch $file }}