From 0c611856ae2e34111485173bab6d7c9e02aa7d54 Mon Sep 17 00:00:00 2001 From: Adam Kudrna Date: Tue, 23 Apr 2024 22:44:15 +0200 Subject: [PATCH] Fix captions in posts caused by the randomly inserted `

` tag Get rid of the extra paragraph tag that is randomly inserted by Ghost to wrap the caption text. --- assets/scss/styles/08-koenig/_card.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/assets/scss/styles/08-koenig/_card.scss b/assets/scss/styles/08-koenig/_card.scss index 929eb53..ee24816 100644 --- a/assets/scss/styles/08-koenig/_card.scss +++ b/assets/scss/styles/08-koenig/_card.scss @@ -1,5 +1,7 @@ // Basic styling for all Ghost content blocks. // Ghost docs: https://ghost.org/docs/themes/content/#figure-and-figcaption +// +// 1. Get rid of the extra paragraph tag that is randomly inserted by Ghost to wrap the caption text. @use "../../tools/breakpoint"; @use "../../tools/content-block"; @@ -17,6 +19,10 @@ } } +.kg-card figcaption > p { + display: contents; // 1. +} + .kg-embed-card { display: flex; justify-content: center;