Hugo Advance Docs

Footer

There are several options to configure the footer from the config.toml

# config.toml
[params]
    ...
    [params.footer]
        show_site_title = true
        show_copyright = true
        show_social_media_links = true
        show_languages = true
        enable_menu_footer_primary = true
        footer_primary_menu_title = "Product"
        enable_menu_footer_secondary = true
        footer_secondary_menu_title = "Company"
        enable_menu_footer_tertiary = true
        footer_tertiary_menu_title = "Support"

There are 3 menus available in the footer.

  • menu.footer_primary
  • menu.footer_secondary
  • menu.footer_tertiary

You can add links to footer menus by adding them to the config.toml or declaring them in the front-matter of a page.

# config.toml

[menu]
    # Primary Footer Menu
    [[menu.footer_primary]]
        name = "Home"
        url = "/"
        weight = 1

    # Secondary Footer Menu
    [[menu.footer_secondary]]
        name = "Privacy Policy"
        url = "/privacy/"
        weight = 1

    # Tertiary Footer Menu
    [[menu.footer_tertiary]]
        name = "404"
        url = "/404/"
        weight = 2
# content/en/pages/about.md
---
title: "About"
...
menu:
  main:
    weight: 5
    name: "About"
  footer_secondary:
    weight: 2
---