68 lines
2.8 KiB
Markdown
Raw Normal View History

2024-09-29 23:48:56 +02:00
+++
categories = ['howto']
description = 'Configure the header and footer'
options = ['disableLandingPageButton', 'landingPageName', 'linkTitle', 'showVisitedLinks']
title = 'Header & Footer'
2024-09-29 23:48:56 +02:00
weight = 2
+++
## Title
{{% badge style="cyan" icon="gears" title=" " %}}Option{{% /badge %}} With the [default partials](configuration/branding/logo#change-the-logo) for the logo, The site title will also be used for the text at the top of the sidebar. If you want to show a different text in the sidebar, you can overwrite `linkTitle`.
{{< multiconfig file=hugo section=params >}}
linkTitle = 'Relearn'
{{< /multiconfig >}}
2024-09-29 23:48:56 +02:00
## Home Button Configuration
2024-10-07 15:30:53 +02:00
By default, the theme displays a home button between search form and navigation menu. The Home button serves as an alternative to clicking the logo.
2024-09-29 23:48:56 +02:00
2024-10-07 15:30:53 +02:00
![Default Home Button](home_button_defaults.png?width=18.75rem)
{{% badge style="cyan" icon="gears" title=" " %}}Option{{% /badge %}} To hide the Home button on the left menu, set `disableLandingPageButton=true`.
{{< multiconfig file=hugo section=params >}}
disableLandingPageButton = true
2024-10-07 15:30:53 +02:00
{{< /multiconfig >}}
{{% badge style="cyan" icon="gears" title=" " %}}Option{{% /badge %}} To change its icon or text, configure the `landingPageName` for your defined languages.
2024-09-29 23:48:56 +02:00
{{< multiconfig file=hugo >}}
[languages]
2024-10-07 15:30:53 +02:00
[languages.en]
[languages.en.params]
landingPageName = '<i class="fa-fw fas fa-home"></i> Home'
2024-10-07 15:30:53 +02:00
[languages.pir]
[languages.pir.params]
landingPageName = '<i class="fa-fw fas fa-home"></i> Arrr! Homme'
2024-09-29 23:48:56 +02:00
{{< /multiconfig >}}
2024-10-07 15:30:53 +02:00
If this option isn't set for a specific language, it will use these default values
2024-09-29 23:48:56 +02:00
{{< multiconfig file=hugo section=params >}}
landingPageName = '<i class="fa-fw fas fa-home"></i> Home'
2024-09-29 23:48:56 +02:00
{{< /multiconfig >}}
For a free configuration of the header menus, see [configuration of the sidebar menus](/configuration/sidebar/menus#defining-sidebar-menus).
2024-09-29 23:48:56 +02:00
## History
{{% badge style="cyan" icon="gears" title=" " %}}Option{{% /badge %}} Turn on `showVisitedLinks=true` to see checkmarks next to visited pages in the main menu. This also adds a history clearer button at the bottom of the menu to remove all checkmarks.
> [!note]
> The visited pages will be [stored in the reader's browser](configuration/sitemanagement/storedinformation).
If you want to have more control, where the history clearer is positioned or you want to configure a different icon, see the [chapter on sidebar configuration](configuration/sidebar/menus#defining-sidebar-menus).
Note that checkmarks will disappear if you rebuild your site, as the page IDs may change.
2024-10-07 15:30:53 +02:00
{{< multiconfig file=hugo section=params >}}
showVisitedLinks = true
2024-10-07 15:30:53 +02:00
{{< /multiconfig >}}
2024-09-29 23:48:56 +02:00
## Footer
To change the menu footer, edit the `layouts/partials/menu-footer.html` file. Check out the [Partials section](configuration/customization/partials) for more ways to customize your site.