Skip to content

Commit

Permalink
update permalinks
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammadAhsan252 authored and ronaldtse committed Dec 5, 2024
1 parent fffc1ed commit 3392dee
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
1 change: 1 addition & 0 deletions _about_pages/copyright-and-licensing.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
layout: page
title: Copyright and Licensing for Published Material
type: about
permalink: /about/policies/copyright-and-licensing
---

== Copyright and Licensing for Published Material
Expand Down
1 change: 1 addition & 0 deletions _about_pages/intellectual-property-rights-policy.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
layout: page
title: Intellectual Property Rights Policy
type: about
permalink: /about/policies/intellectual-property-rights-policy
---

== Intellectual Property Rights Policy
Expand Down
1 change: 1 addition & 0 deletions _about_pages/policies-and-procedures.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
layout: page
title: Policies and Procedures
type: about
permalink: /about/policies/policies-and-procedures
---

== Policies and Procedures
Expand Down
6 changes: 3 additions & 3 deletions _data/navigation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ about:
url: /about/policies
subsubfolderitems:
- page: Policies and Procedures
url: /about/policies-and-procedures
url: /about/policies/policies-and-procedures
- page: Copyright and Licensing
url: /about/copyright-and-licensing
url: /about/policies/copyright-and-licensing
- page: Intellectual Property Rights Policy
url: /about/intellectual-property-rights-policy
url: /about/policies/intellectual-property-rights-policy
- page: Board of Directors
url: /about/board-directors
- page: Liaisons and Relationships
Expand Down
18 changes: 13 additions & 5 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,28 @@ <h3>{{ item.title }}</h3>

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

<ul class="menu nav {% if entry.url != page.url and is_current_subitem == false %}hide{% endif %}">
{% for subentry in entry.subsubfolderitems %}
<li class="leaf">
<a href="{{ subentry.url }}">{{ subentry.page }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
{% endfor %}
{% endif %}

</div>
</section>
</div>
Expand Down

0 comments on commit 3392dee

Please sign in to comment.