diff --git a/CHANGELOG.md b/CHANGELOG.md index b43c4f8..a99b911 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Upgrade to Typography v0.5.13 ([#864](https://github.com/jpanther/congo/pull/864)) +### Fixed + +- Featured images overlap page title when article metadata hidden ([#827](https://github.com/jpanther/congo/issues/827)) + ## [2.8.2] - 2024-04-17 ### Added diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index 3d208df..f2d0824 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -1903,14 +1903,14 @@ code { margin-top: -0.75rem; } -.-mt-4 { - margin-top: -1rem; -} - .mb-1 { margin-bottom: 0.25rem; } +.mb-10 { + margin-bottom: 2.5rem; +} + .mb-12 { margin-bottom: 3rem; } @@ -1927,6 +1927,10 @@ code { margin-bottom: 1.5rem; } +.mb-8 { + margin-bottom: 2rem; +} + .mb-\[2px\] { margin-bottom: 2px; } diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 0418c98..0489c5d 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -72,7 +72,7 @@ fingerprintAlgorithm = "sha256" # site = "ABC12345" #[umamiAnalytics] -# site = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +# site = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # region = "eu" # Can be either "eu" or "us" [verification] diff --git a/layouts/_default/single.html b/layouts/_default/single.html index da9ee23..2f2668c 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -7,7 +7,7 @@ {{ if .Params.showBreadcrumbs | default (.Site.Params.article.showBreadcrumbs | default false) }} {{ partial "breadcrumbs.html" . }} {{ end }} -

+

{{ .Title | emojify }}

{{ if or @@ -17,14 +17,14 @@ (and (.Params.showReadingTime | default (.Site.Params.article.showReadingTime | default true)) (ne .ReadingTime 0)) (.Params.showEdit | default (.Site.Params.article.showEdit | default false)) }} -
+
{{ partial "article-meta.html" (dict "context" . "scope" "single") }}
{{ end }} {{ with $feature }}
{{ $altText := $.Params.featureAlt | default $.Params.coverAlt | default "" }} - {{ $class := "mb-6 -mt-4 rounded-md" }} + {{ $class := "mb-6 rounded-md" }} {{ $webp := $.Page.Site.Params.enableImageWebp | default true }} {{ partial "picture.html" (dict "img" . "alt" $altText "class" $class "lazy" false "webp" $webp) }} {{ with $.Params.coverCaption }} @@ -36,7 +36,7 @@
{{ if and (.Params.showTableOfContents | default (.Site.Params.article.showTableOfContents | default false)) (in .TableOfContents " -
+
{{ partial "toc.html" . }}