Remove context variable and flag in hugo.yaml

This commit is contained in:
Attila Greguss
2024-12-18 10:30:34 +00:00
parent 797b485c9b
commit 869731e9de
3 changed files with 5 additions and 20 deletions

View File

@ -64,24 +64,13 @@ layouts/partials/custom/head-end.html
## Custom Footer Section
You can add a custom section the footer between the language/theme buttons and the Copyright/Powered By section by creating a file `layouts/partials/custom/footer.html` in your site __and__ setting `customSection: true` in the `footer` section of your `hugo.yaml`:
You can add a custom section the footer between the language/theme buttons and the Copyright/Powered By section by creating a file `layouts/partials/custom/footer.html` in your site.
```yaml {filename="hugo.yaml"}
footer:
enable: true
customSection: true
# These settings are still respected
displayCopyright: false
displayPoweredBy: true
# This setting applies to the custom section
with: "wide"
```html {filename="layouts/partials/custom/footer.html"}
<!-- Your footer element here -->
```
Variables available in the footer are:
- `{{ .footerButtonColor }}` - The color/background color of a footer button
_Note: The custom footer inherits the default footer background color and text color._
_Note: The custom footer inherits the default footer background color text color and the `width` setting in `hugo.yaml#footer` section._
## Custom Layouts