Compare commits

...

3 Commits

Author SHA1 Message Date
Wolf Noble 915f62ddb8
Merge 984bb01c79 into c87c9adece 2023-10-31 09:48:47 +11:00
James Panther c87c9adece
🐛 Pass article meta to `safeHTML` to type hint for `delimit` function
Fixes #689
2023-10-31 09:19:58 +11:00
Wolf Noble 984bb01c79 🚸 🩹 add logic braces to sidestep image sizing when using a vector image for the author 2023-10-26 20:31:15 -05:00
4 changed files with 11 additions and 3 deletions

View File

@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
## [Unreleased] ## [Unreleased]
### Fixed
- Article metadata HTML is output as text when using Hugo v0.120.0 ([#689](https://github.com/jpanther/congo/pull/689))
## [2.7.2] - 2023-10-26 ## [2.7.2] - 2023-10-26
### Changed ### Changed

View File

@ -36,7 +36,7 @@
<div class="flex flex-row flex-wrap items-center"> <div class="flex flex-row flex-wrap items-center">
{{/* Output partials */}} {{/* Output partials */}}
{{ with ($meta.Get "partials") }} {{ with ($meta.Get "partials") }}
{{ delimit . "<span class=\"px-2 text-primary-500\">&middot;</span>" }} {{ delimit . "<span class=\"px-2 text-primary-500\">&middot;</span>" | safeHTML }}
{{ end }} {{ end }}
{{/* Output draft label */}} {{/* Output draft label */}}

View File

@ -3,7 +3,9 @@
{{ with .Site.Author.image }} {{ with .Site.Author.image }}
{{ $authorImage := resources.Get . }} {{ $authorImage := resources.Get . }}
{{ if $authorImage }} {{ if $authorImage }}
{{ $authorImage := $authorImage.Fill "192x192 Center" }} {{- if ne $authorImage.MediaType.SubType "svg" }}
{{ $authorImage := $authorImage.Fill "192x192 Center" }}
{{- end }}
<img <img
class="!mb-0 !mt-0 me-4 h-24 w-24 rounded-full" class="!mb-0 !mt-0 me-4 h-24 w-24 rounded-full"
width="96" width="96"

View File

@ -7,7 +7,9 @@
{{ with .Site.Author.image }} {{ with .Site.Author.image }}
{{ $authorImage := resources.Get . }} {{ $authorImage := resources.Get . }}
{{ if $authorImage }} {{ if $authorImage }}
{{ $authorImage := $authorImage.Fill "288x288 Center" }} {{- if ne $authorImage.MediaType.SubType "svg" }}
{{ $authorImage := $authorImage.Fill "288x288 Center" }}
{{- end }}
<img <img
class="mb-2 h-36 w-36 rounded-full" class="mb-2 h-36 w-36 rounded-full"
width="144" width="144"