热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

Addoptiontoshowexistingsociallinksinnavbar

PurposeThisPRmakesiteasytoaddtooltipstomenu(navbar)items.By


Purpose

This PR makes it easy to add tooltips to menu (navbar) items.
By adding new parameters to

1
menu.toml

, tooltips can be easily added to any non-dropdown menu items.

Example:

1
2
3
4
5
6
7
8
9
ini

[[main]]

  id = "someID"

  name = "someName"

  url = "some/URL/" # Link URL.

  weight = 10

  [main.params]

    tooltip = "tooltipName" # Add tooltip to menu item. Not supported for dropdown items.

    tooltip_placement = "bottom" # Tooltip placement. Pick bottom, left or right. Defaults to bottom.

This PR is only supported by Hugo v0.79 or newer.

File changes/additions

Changed files:
wowchemy/layouts/partials/navbar.html

该提问来源于开源项目:wowchemy/wowchemy-hugo-modules

Awesome contribution ! I'll be using this (first I need to make some room in my menu). the Hugo version needs to be bumped right?



Not for this PR as the scope changed from the proposal in the first comment (which would have required Hugo 0.79) to the proposal in the second comment https://github.com/wowchemy/wowchemy-hugo-modules/pull/2010#issuecomment-748322912


   



推荐阅读
author-avatar
多米音乐_54101533
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有