Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[功能建议]:导航栏子菜单栏启用可选的图标 #433

Open
xzadudu179 opened this issue Sep 5, 2024 · 0 comments
Open

[功能建议]:导航栏子菜单栏启用可选的图标 #433

xzadudu179 opened this issue Sep 5, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request high priority It will be completed right away

Comments

@xzadudu179
Copy link

xzadudu179 commented Sep 5, 2024

功能描述

submenu 中添加可选的 icon 参数且能够可选地显示图标

图片描述

image
该页面为自己修改源代码的结果

其他

希望的 navbar.links 配置

    links:
        Home:
            path: /
            icon: fa-regular fa-planet-ringed # can be empty
        Timeline:
            path: /archives
            icon: fa-sharp fa-regular fa-timeline-arrow # can be empty
            submenus:
                Archives: # 将 submenu 内配置 path 和 icon
                    path: /archives
                    icon: fa-regular fa-box-archive
                Records:
                    path: /records
                    icon: fa-regular fa-pen
        # Status:
        #   path: https://status.ohevan.com/
        #   icon: fa-regular fa-chart-bar
        Masonry:
            icon: fa-regular fa-image
            path: /masonry
        Indexs:
            icon: fa-regular fa-bars
            submenus:
                Tags:
                    path: /tags
                    icon: fa-regular fa-tag
                Categories:
                    path: /categories
                    icon: fa-regular fa-inbox
        About:
            icon: fa-regular fa-sparkles
            path: /about
        #   submenus:
        #     Me:
        #       path: /about
        #       icon: fa-regular fa-sparkles
        Friends:
            icon: fa-regular fa-gift
            path: /links
        # ...... # you can add more
@xzadudu179 xzadudu179 added the enhancement New feature or request label Sep 5, 2024
@EvanNotFound EvanNotFound added the high priority It will be completed right away label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request high priority It will be completed right away
Projects
None yet
Development

No branches or pull requests

2 participants