Skip to content

Commit

Permalink
Add page sorting by title
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasrla committed Mar 11, 2022
1 parent 501bd92 commit de5fa44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ <h2>Posts</h2>

<h2>Pages</h2>

{% assign pages = site.html_pages %}
{% assign sorted_pages = site.html_pages | sort: 'title' %}
<ul class="padded none-list">
{% for p in pages %}
{% for p in sorted_pages %}
{% unless p.url == "/" or p.url == "/404.html" %}
<li class="flex-item">
<a href="{{ p.url | relative_url }}">
Expand Down

0 comments on commit de5fa44

Please sign in to comment.