From 519d48f94b9f3d35f53fe6abbd3160bf21272588 Mon Sep 17 00:00:00 2001 From: Cyrill Raccaud Date: Sat, 12 Oct 2024 14:40:50 +0200 Subject: [PATCH] complete the feature for the cover dimming class in page - feature already present for site - add info for the param to the example Signed-off-by: Patrick Kollitsch --- exampleSite/config.toml | 2 ++ layouts/partials/page-header.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 53a2299..c02b7f5 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -38,6 +38,8 @@ description = "The last theme you'll ever need. Maybe." background_color_class = "bg-black" # choose an fitting and alignment style for the featured image using tachyons classes such as "cover|contain" for fitting and "bg-top|bg-center|bg-bottom" for alignment, or add any other class space-separated to customize further featured_image_class = "cover bg-top" +# choose a color dimming class for the page or size header from any on this page: https://tachyons.io/docs/themes/skins/, preface it with "bg-" and add the value such as "-X0" where X is in [1,9] +cover_dimming_class = "bg-black-60" recent_posts_number = 3 [ananke.social.follow] diff --git a/layouts/partials/page-header.html b/layouts/partials/page-header.html index 51eb0e1..a6c49ed 100644 --- a/layouts/partials/page-header.html +++ b/layouts/partials/page-header.html @@ -2,7 +2,7 @@ {{ if $featured_image }} {{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}}
-
+
{{ partial "site-navigation.html" . }}
{{ if not .Params.omit_header_text }}