From 8e6d6fb7166c9259c55ad921bd4183a10b57b928 Mon Sep 17 00:00:00 2001 From: Robert Fekete Date: Wed, 25 Oct 2023 11:25:44 +0200 Subject: [PATCH 1/3] Make it possible to disable overlay on the hero image --- layouts/shortcodes/blocks/cover.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/shortcodes/blocks/cover.html b/layouts/shortcodes/blocks/cover.html index a055c399f9..08eba1737e 100644 --- a/layouts/shortcodes/blocks/cover.html +++ b/layouts/shortcodes/blocks/cover.html @@ -7,6 +7,7 @@ {{ $logo_anchor := .Get "logo_anchor" | default "smart" -}} {{/* Height can be one of: auto, min, med, max, full. */ -}} {{ $height := .Get "height" | default "max" -}} +{{ $disable_overlay := .Get "disable_overlay" | default false }} {{ with $promo_image -}} {{ $promo_image_big := (.Fill (printf "1920x1080 %s" $image_anchor)) -}} @@ -27,7 +28,7 @@
+ {{- end }} {{ if not $disable_overlay }} td-overlay td-overlay--dark {{ end }} -bg-{{ $col_id }}">
From a3277d9a845c772b8876b0d0e85a4989998a4db8 Mon Sep 17 00:00:00 2001 From: Robert Fekete Date: Wed, 25 Oct 2023 11:29:28 +0200 Subject: [PATCH 2/3] Adds documentation --- userguide/content/en/docs/adding-content/shortcodes/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userguide/content/en/docs/adding-content/shortcodes/index.md b/userguide/content/en/docs/adding-content/shortcodes/index.md index a55832ef26..7ede83e246 100644 --- a/userguide/content/en/docs/adding-content/shortcodes/index.md +++ b/userguide/content/en/docs/adding-content/shortcodes/index.md @@ -62,7 +62,7 @@ Note that the relevant shortcode parameters above will have sensible defaults, b | height | | See above. | color | | See above. | byline | Byline text on featured image. | - +| disable_overlay | false |By default, Docsy adds an overlay to the hero image. Use `disable_overlay=true` to avoid that.| To set the background image, place an image with the word "background" in the name in the page's [Page Bundle](/docs/adding-content/content/#page-bundles). For example, in our the example site the background image in the home page's cover block is [`featured-background.jpg`](https://github.com/google/docsy-example/tree/main/content/en), in the same directory. From 2523a1e9b39c499db4bb76342a49e0898867686d Mon Sep 17 00:00:00 2001 From: Robert Fekete Date: Wed, 25 Oct 2023 11:30:28 +0200 Subject: [PATCH 3/3] Fix description of byline parameter --- userguide/content/en/docs/adding-content/shortcodes/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userguide/content/en/docs/adding-content/shortcodes/index.md b/userguide/content/en/docs/adding-content/shortcodes/index.md index 7ede83e246..3aaaa6f942 100644 --- a/userguide/content/en/docs/adding-content/shortcodes/index.md +++ b/userguide/content/en/docs/adding-content/shortcodes/index.md @@ -61,7 +61,7 @@ Note that the relevant shortcode parameters above will have sensible defaults, b | image_anchor | | | height | | See above. | color | | See above. -| byline | Byline text on featured image. | +| byline | | Byline text on featured image. | | disable_overlay | false |By default, Docsy adds an overlay to the hero image. Use `disable_overlay=true` to avoid that.| To set the background image, place an image with the word "background" in the name in the page's [Page Bundle](/docs/adding-content/content/#page-bundles). For example, in our the example site the background image in the home page's cover block is [`featured-background.jpg`](https://github.com/google/docsy-example/tree/main/content/en), in the same directory.