Skip to content

Commit

Permalink
add sub-nav to policies and procedures
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammadAhsan252 authored and ronaldtse committed Dec 5, 2024
1 parent b9af943 commit fffc1ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions _data/navigation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ about:
url: /about/major-work-projects
- page: Policies
url: /about/policies
- page: Policies and Procedures
url: /about/policies-and-procedures
- page: Copyright and Licensing
url: /about/copyright-and-licensing
- page: Intellectual Property Rights Policy
url: /about/intellectual-property-rights-policy
subsubfolderitems:
- page: Policies and Procedures
url: /about/policies-and-procedures
- page: Copyright and Licensing
url: /about/copyright-and-licensing
- page: Intellectual Property Rights Policy
url: /about/intellectual-property-rights-policy
- page: Board of Directors
url: /about/board-directors
- page: Liaisons and Relationships
Expand Down
2 changes: 1 addition & 1 deletion _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ <h3>{{ item.title }}</h3>

<!-- Nested Subfolder Items -->
{% if entry.subsubfolderitems and entry.subsubfolderitems[0] %}
<ul class="menu nav">
<ul class="menu nav {% if entry.url != page.url %}hide{% endif %}">
{% for subentry in entry.subsubfolderitems %}
<li class="leaf">
<a href="{{ subentry.url }}">{{ subentry.page }}</a>
Expand Down

0 comments on commit fffc1ed

Please sign in to comment.