mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-02-02 03:22:33 -06:00
Add option to hide text in header
This commit is contained in:
parent
8e2dd360fe
commit
33b3302a61
4 changed files with 6 additions and 2 deletions
|
@ -15,7 +15,8 @@ enableCodeCopy = false
|
||||||
# mainSections = ["section1", "section2"]
|
# mainSections = ["section1", "section2"]
|
||||||
# robots = ""
|
# robots = ""
|
||||||
|
|
||||||
disableImageOptimization = true
|
disableImageOptimization = false
|
||||||
|
disableTextInHeader = false
|
||||||
|
|
||||||
# defaultBackgroundImage = "IMAGE.jpg" # used as default for background images
|
# defaultBackgroundImage = "IMAGE.jpg" # used as default for background images
|
||||||
# defaultFeaturedImage = "IMAGE.jpg" # used as default for featured images in all articles
|
# defaultFeaturedImage = "IMAGE.jpg" # used as default for featured images in all articles
|
||||||
|
|
|
@ -16,6 +16,7 @@ mainSections = ["docs"]
|
||||||
# robots = ""
|
# robots = ""
|
||||||
|
|
||||||
disableImageOptimization = false
|
disableImageOptimization = false
|
||||||
|
disableTextInHeader = false
|
||||||
|
|
||||||
defaultBackgroundImage = "/img/ocean.jpg"
|
defaultBackgroundImage = "/img/ocean.jpg"
|
||||||
defaultFeaturedImage = "/img/ocean.jpg"
|
defaultFeaturedImage = "/img/ocean.jpg"
|
||||||
|
|
|
@ -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. |
|
| `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. |
|
| `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. |
|
| `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 |
|
| `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. |
|
| `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 |
|
| `highlightCurrentMenuArea` | _Not set_ | Marks menu entries in the main manu when selected |
|
||||||
|
|
|
@ -17,10 +17,11 @@
|
||||||
<div class="flex flex-1 items-center justify-between">
|
<div class="flex flex-1 items-center justify-between">
|
||||||
<nav class="flex space-x-3">
|
<nav class="flex space-x-3">
|
||||||
|
|
||||||
|
{{ if not .Site.Params.disableTextInHeader | default true }}
|
||||||
<a href="{{ "" | relLangURL }}" class="text-base font-medium text-gray-500 hover:text-gray-900">{{
|
<a href="{{ "" | relLangURL }}" class="text-base font-medium text-gray-500 hover:text-gray-900">{{
|
||||||
.Site.Title | markdownify
|
.Site.Title | markdownify
|
||||||
| emojify }}</a>
|
| emojify }}</a>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
<nav class="hidden md:flex items-center space-x-5 md:ml-12 h-12">
|
<nav class="hidden md:flex items-center space-x-5 md:ml-12 h-12">
|
||||||
|
|
Loading…
Reference in a new issue