From e80cac8c43d9ddd6f49e2617ca9d3586fd790ca8 Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Thu, 10 Aug 2023 14:40:43 +0200 Subject: [PATCH] More readable titles in blog posts --- themes/chosto/layouts/partials/header.html | 13 ++++++++----- themes/chosto/static/css/custom.css | 5 +++++ 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/themes/chosto/layouts/partials/header.html b/themes/chosto/layouts/partials/header.html index 49706e4..ea6023f 100644 --- a/themes/chosto/layouts/partials/header.html +++ b/themes/chosto/layouts/partials/header.html @@ -5,7 +5,8 @@ {{ $page := eq "page" .Kind }} {{ $home := eq "home" .Kind }}
-
+
@@ -29,10 +30,12 @@
-

{{ .Title }}

- {{ with .Params.subtitle }} -

{{ . }}

- {{ end }} +
+

{{ .Title }}

+ {{ with .Params.subtitle }} +

{{ . }}

+ {{ end }} +
{{ if (and .IsPage (eq .FirstSection.Section "posts"))}} diff --git a/themes/chosto/static/css/custom.css b/themes/chosto/static/css/custom.css index d299275..0a6003e 100644 --- a/themes/chosto/static/css/custom.css +++ b/themes/chosto/static/css/custom.css @@ -36,6 +36,11 @@ p:not(.title, .subtitle, figcaption p) { text-align: justify; } +/* Used only in page header, add transparency */ +.box { + background: rgba(0, 0, 0, 0.3); +} + /* New font is "smaller" in feeling */ .navbar-dropdown { font-size: 1rem;