Skip to content

Commit

Permalink
Add basic sorting to the sidebar (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielOaks authored Oct 30, 2023
1 parent 99c5b5f commit a8841bd
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 3 deletions.
7 changes: 4 additions & 3 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ <h1>{{ site.title }}</h1>
<aside>
<!-- generate sidebar -->
<ul>
{% for post in site.pages %}
{% if post.title %}
{% assign sorted_pages = site.pages | sort:"order" %}
{% for entry in sorted_pages %}
{% if entry.title %}
<li>
<a href="{{ post.url }}">{{ post.title }}</a>
<a href="{{ entry.url }}">{{ entry.title }}</a>
</li>
{% endif %}
{% endfor %}
Expand Down
1 change: 1 addition & 0 deletions documentation/auto-advance.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Auto-Advance
order: 9
---

![header_getting_started](/media/headers/autoadvance.png)
Expand Down
1 change: 1 addition & 0 deletions documentation/characters-and-portraits.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Characters & Portraits
order: 2
---

![header_character_portraits](/media/headers/character_portraits.png)
Expand Down
1 change: 1 addition & 0 deletions documentation/creating-extensions.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Creating Extensions
order: 7
---

![header_creating_extensions](/media/headers/creating_extensions.png)
Expand Down
1 change: 1 addition & 0 deletions documentation/creating-timelines-in-code.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Creating Timelines In Code
order: 8
---

![header_timelines_in_code](/media/headers/timelines_in_code.png)
Expand Down
1 change: 1 addition & 0 deletions documentation/custom-portraits.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Custom Portraits
order: 6
---

![header_custom_portraits](/media/headers/custom_portraits.png)
Expand Down
1 change: 1 addition & 0 deletions documentation/dialogic-nodes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Dialogic Nodes
order: 4
---

![header_dialogic_nodes_layouts](/media/headers/dialogic_nodes_layouts.png)
Expand Down
1 change: 1 addition & 0 deletions documentation/dialogic-signals.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Dialogic Signals
order: 5
---

![header_signals](/media/headers/signals.png)
Expand Down
1 change: 1 addition & 0 deletions documentation/getting-started.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Getting Started
order: 1
---

![header_getting_started](/media/headers/getting_started.png)
Expand Down
1 change: 1 addition & 0 deletions documentation/pausing.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Pausing
order: 10
---

# Pausing
Expand Down
1 change: 1 addition & 0 deletions documentation/saving-and-loading.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Saving & Loading
order: 11
---

![header_saving_loading](/media/headers/saving_loading.png)
Expand Down
1 change: 1 addition & 0 deletions documentation/styles-and-layouts.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Styles & Layouts
order: 3
---

![header_style-editor](/media/headers/styles_and_layouts.png)
Expand Down

0 comments on commit a8841bd

Please sign in to comment.