I have code that displays buttons on navbar. On one of the buttons I would like to add a drop down menu. I've already added the code for the drop down in my navigation.yml file, but I am having issues adding it in my jekyll html file. Below is part of the code that shows the navigation bar with button links. I just need help adding the drop down menu code.
-----html file-----
<ul class="visible-links">
{%- for link in site.data.navigation.main -%}
<li class="masthead__menu-item">
<a href="{{ link.url | relative_url }}"{% if link.description %} title="{{ link.description }} "{% endif %}>{{ link.title }}</a>
</li>
{%- endfor -%}
</ul>
---navigation.yml file------
- title: "Contact Us"
sublinks:
- title: "Text goes here"
url: "#"
- title: "Text goes here"
url: "#"
- title: "Text goes here"
url: "#"
I'm not that familiar with Jekyll, so any help is needed.
Thanks,