GenomicsStandardsConsortium / gensc.github.io

Public repository for the GSC web site.
http://www.gensc.org/
Creative Commons Zero v1.0 Universal
4 stars 5 forks source link

Add dropdown menus to section #44

Closed ramonawalls closed 3 years ago

ramonawalls commented 3 years ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like Each top level menu item (About, Projects, etc.) should have a drop-down menu. Just have to figure out how to do it.

Describe alternatives you've considered Currently you have to click on the page to get to the subpages

Additional context See also issue #43 for breadcrumbs

dehays commented 3 years ago

https://gist.github.com/citrusui/07978f14b11adada364ff901e27c7f61

ymgan commented 3 years ago

Hey,

I just realised that Darwin Core website also has a dropdown menu (see Guides).

If I understand correctly, they configure it in _config.yml, see here like this:

navbar:
  left:
  - text: Terms
    href: terms/
  - text: Guides
    menu:
    - text: Simple Darwin Core
      href: simple/
    - text: Text
      href: text/
    - text: XML
      href: xml/
    - text: RDF
      href: rdf/
  - text: Namespace policy
    href: namespace/
  right:
  - text: GitHub
    href: https://github.com/tdwg/dwc

I hope it's helpful!! Thanks for your hard work!!

only1chunts commented 3 years ago

has to add CSS style within header.html but it works now, I also made it sticky so that the menu is always at the top of the page even when you scroll down.