Skip to content

Commit

Permalink
Merge pull request #1080 from nunocoracao/953-is-there-an-option-to-o…
Browse files Browse the repository at this point in the history
…mmit-the-title-beside-the-logo

Add option to hide text in header
  • Loading branch information
nunocoracao authored Dec 1, 2023
2 parents 8e2dd36 + 33b3302 commit 0025b89
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions exampleSite/config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ mainSections = ["docs"]
# robots = ""

disableImageOptimization = false
disableTextInHeader = false

defaultBackgroundImage = "/img/ocean.jpg"
defaultFeaturedImage = "/img/ocean.jpg"
Expand Down
1 change: 1 addition & 0 deletions exampleSite/content/docs/configuration/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
3 changes: 2 additions & 1 deletion layouts/partials/header/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
<div class="flex flex-1 items-center justify-between">
<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">{{
.Site.Title | markdownify
| emojify }}</a>

{{ end }}

</nav>
<nav class="hidden md:flex items-center space-x-5 md:ml-12 h-12">
Expand Down

0 comments on commit 0025b89

Please sign in to comment.