Skip to content

Clean up the _data/navigation/main.yml #819

@jbubar

Description

@jbubar

Overview

We need to remove the unused icons for our nav bar and standardize the use of quotes in the menu, to close out our updating of the menu from the old format to the new.

Details

  • Remove unnecessary lines of code for each of the nav items:
    • Remove the svg's from the repo if they are not used elsewhere on the site
  • Identify if we need the single quote for menu items to work. If we don't need any quotes, then remove them. It's possible that we do need the quotes on the items that link to anchors within the site. If we do need them there, then make a recommendation if we should have them only there or on all.
    • revise file to meet approved recommendation
    • revise wiki to have standards info

Resources

Recommendation

standardize the navigation links found on _data/navigation/main.yml to have single quotes.

Example:

- name: Events
  link: '/events'
  list_class_name:   # unnecessary
  icon: /svg/icon-hacknights.svg  # unnecessary

Delete the last two lines

    - name: Events
      link: '/events'
-     list_class_name:
-     icon: /svg/icon-hacknights.svg

Notice that the link has single quotes for the /#about and no quotes for the /toolkit. The second part of this issue is to standardize this.

- name: Connect
 link: '/#about'
 list_class_name:
 icon: /svg/icon-about.svg

- name: Toolkit
 link: /toolkit
 list_class_name:
 icon: /svg/icon-wrench.svg

links to the icons:
_includes/svg/icon-hacknights.svg
_includes/svg/icon-press.svg
_includes/svg/icon-about.svg
_includes/svg/icon-wrench.svg

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions