🐛 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
View File
@@ -19,6 +19,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Fixed
- Featured images overlap page title when article metadata hidden ([#827](https://github.com/jpanther/congo/issues/827))
- Inconsistent picture rendering between `figure` shortcode and Markdown render hook ([#828](https://github.com/jpanther/congo/issues/828))
## [2.8.2] - 2024-04-17
+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 }}