From 33b3302a6199f81ac5fb97b7085d8ed4322504e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Cora=C3=A7=C3=A3o?= Date: Fri, 1 Dec 2023 13:28:24 +0000 Subject: [PATCH] Add option to hide text in header --- config/_default/params.toml | 3 ++- exampleSite/config/_default/params.toml | 1 + exampleSite/content/docs/configuration/index.md | 1 + layouts/partials/header/basic.html | 3 ++- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/config/_default/params.toml b/config/_default/params.toml index 7ac39c58..7ddfd3b5 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -15,7 +15,8 @@ enableCodeCopy = false # mainSections = ["section1", "section2"] # robots = "" -disableImageOptimization = true +disableImageOptimization = false +disableTextInHeader = false # defaultBackgroundImage = "IMAGE.jpg" # used as default for background images # defaultFeaturedImage = "IMAGE.jpg" # used as default for featured images in all articles diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index ff6665f5..ccdbb1c4 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -16,6 +16,7 @@ mainSections = ["docs"] # robots = "" disableImageOptimization = false +disableTextInHeader = false defaultBackgroundImage = "/img/ocean.jpg" defaultFeaturedImage = "/img/ocean.jpg" diff --git a/exampleSite/content/docs/configuration/index.md b/exampleSite/content/docs/configuration/index.md index 5d570ccc..87b1e790 100644 --- a/exampleSite/content/docs/configuration/index.md +++ b/exampleSite/content/docs/configuration/index.md @@ -167,6 +167,7 @@ Many of the article defaults here can be overridden on a per article basis by sp | `robots` | _Not set_ | String that indicates how robots should handle your site. If set, it will be output in the page head. Refer to [Google's docs](https://developers.google.com/search/docs/advanced/robots/robots_meta_tag#directives) for valid values. | | `disableImageZoom` | `false` | Disables image zoom feature across all the images in the site. | | `disableImageOptimization` | `false` | Disables image resize and optimization features across all the images in the site. | +| `disableTextInHeader` | `false` | Disables text in header, useful for logo based headers. | | `defaultBackgroundImage` | _Not set_ | Default background image for both `background` homepage layout and `background` hero style | | `defaultFeaturedImage` | _Not set_ | Default background image for all `featured` images across articles, will be overriden by a local `featured` image. | | `highlightCurrentMenuArea` | _Not set_ | Marks menu entries in the main manu when selected | diff --git a/layouts/partials/header/basic.html b/layouts/partials/header/basic.html index a9b1e991..6446136a 100644 --- a/layouts/partials/header/basic.html +++ b/layouts/partials/header/basic.html @@ -17,10 +17,11 @@