Skip to content

Commit

Permalink
sorting 2
Browse files Browse the repository at this point in the history
  • Loading branch information
austinhuang0131 committed Feb 5, 2024
1 parent 745ac5b commit 66e0220
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions _layouts/page-two-col.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
layout: page
---

<div class="gut-lg">
<nav class="side-nav col-md-3 float-md-left js-side-nav">
<ul class="list-style-none">
{% assign pages_list = site.pages | sort:"order" %}
{% for node in pages_list %}
{% if node.parent == page.parent %}
<li class="side-nav-item border-bottom m-0{% if page.url == node.url %} active{% endif %} js-side-nav-item"><a href="{{ node.url | absolute_url }}" class="side-nav-link py-2 d-block{% if page.url == node.url %} active js-side-nav-link-active{% endif %}">{{ node.title }}</a></li>
{% endif %}
{% endfor %}
</ul>
</nav>

<div class="col-md-9 float-md-left">
{{ content }}

{% include _gh_link.html %}
</div>
</div>

0 comments on commit 66e0220

Please sign in to comment.