Skip to content

[Enhancement] Support for footer menu #1743

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

br4yd
Copy link

@br4yd br4yd commented May 17, 2025

What does this PR change? What problem does it solve?
This PR adds support of the footer menus, that are described in Hugo's documentation here. When rendered it looks something like in this example as seen on this screenshot:
image

Links are separated by " · ". This does not get printed after the last footer link of course to only have this separator between links and not after links.

In my case, working with a toml config, I had this menu defined as:

[[menu.footer]]
name = "Imprint"
url = "/imprint"
weight = 10

[[menu.footer]]
name = "Privacy Policy"
url = "/privacy-policy"
weight = 20

Was the change discussed in an issue or in the Discussions before?
Not that I am aware off. I just saw #1481, but this behaves differently from my PR as far as I understand.

PR Checklist

  • This change adds/updates translations and I have used the template present here.
  • I have enabled maintainer edits for this PR.
  • I have verified that the code works as described/as intended.
  • This change adds a Social Icon which has a permissive license to use it.
  • This change does not include any CDN resources/links.
  • This change does not include any unrelated scripts such as bash and python scripts.
  • This change updates the overridden internal templates from HUGO's repository.

Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant