Skip to content

Menu customisation #533

Answered by razonyang
Mecanik asked this question in Q&A
May 23, 2022 · 1 comments · 7 replies
Discussion options

You must be logged in to vote

Yes. Let's take Tags as an example:

  1. Create a parent menu first:
// config/_default/menu.toml

[[main]]
  name = "Blog"
  identifier = "blog"
  1. Connect the two menus with the parent directive.
// content/tags/index.md

[menu.main]
  weight = 30
  pre = '<i class="fas fa-fw fa-tags"></i>'
  parent = 'blog'

The parent should be equal to the identifier we defined above.

Further reading: Menu.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@Mecanik
Comment options

@razonyang
Comment options

@Mecanik
Comment options

@Mecanik
Comment options

@razonyang
Comment options

Answer selected by Mecanik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants