菜单额外的快捷链接

菜单(最左侧)额外的快捷链接

顺序是根据weight = 后面的数值大小来决定的,数字越大越靠下 示例:

  1. 第一个显示星图标,名字叫Relearn Theme,点击会进入https://mcshelby.github.io/hugo-theme-relearn/index.html
  2. 第二个显示书签图标,名字叫Hugo Documentation,点击会进入https://mcshelby.github.io/hugo-theme-relearn/index.html
  3. 第三个显示标签图标,名字是 Tags,点击会看到本站标签
[[menu.shortcuts]]
name = "<i class='fas fa-star'></i> Relearn Theme"
identifier = "relearn"
url = "https://mcshelby.github.io/hugo-theme-relearn/index.html"
weight = 10


[[menu.shortcuts]]
name = "<i class='fas fa-fw fa-bookmark'></i> Hugo Documentation"
identifier = "hugodoc"
url = "https://gohugo.io/"
weight = 20


[[menu.shortcuts]]
name = "<i class='fas fa-fw fa-tags'></i> Tags"
url = "tags/"
weight = 100

渲染结果:

菜单额外的快捷链接

菜单额外的快捷链接