Future Imperfect

Hi there I am new to both Hugo and Toml

I have used a theme called Future Imperfect and I am trying to add additional content to the menu in the navbar.html layout. I have 8 items defined as shown below, but only items with weight : 8,7,6,5,2,1 are displayed.

Also, how to create and use my own List item.

Toml

[[menu.main]]
  name = "Home"
  url = "/"
  identifier = "fa fa-home"
  weight = 1

[[menu.main]]
  name = "Blog"
  url = "/blog/"
  identifier = "fa fa-newspaper-o"
  weight = 2

[[menu.main]]
  name = "shared"
  url = "/shared/"
  identifier = "fa fa-list"
  weight = 3

[[menu.main]]
  name = "cloud"
  url = "/cloud/"
  identifier = "fa fa-sitemap"
  weight = 4

[[menu.main]]
  name = "vps"
  url = "/vps/"
  identifier = "fa fa-list"
  weight = 5  

[[menu.main]]
  name = "About"
  url = "/about/"
  identifier = "fa fa-id-card-o"
  weight = 6

[[menu.main]]
  name = "Categories"
  url = "/categories/"
  identifier = "fa fa-sitemap"
  weight = 7

[[menu.main]]
  name = "Contact"
  url = "/contact/"
  identifier = "fa fa-envelope-o"
  weight = 8

Code used in navbar.html:

	{{ range .Site.Menus.main }}
	<li>
		<a href="{{ .URL }}">
				<i class="{{ .Identifier }}">&nbsp;</i>{{ .Name }}
		</a>
	</li>
    {{ end }}

Duplicate identifiers. They should be unique. You can either file a bug against the theme or override the templates from within your site to meet your needs. Here’s the menu doc:

Really sorry for the late reply @jhabdas.

That was the issue.

Thank You for helping:relieved::+1:

1 Like