mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-10 10:56:49 +00:00
Sort natural
This commit is contained in:
parent
617bad0dc4
commit
bbbb211449
@ -1,7 +1,7 @@
|
||||
<section class="aside-module grid__item one-whole lap-one-half">
|
||||
<h1 class="title delta">Categories</h1>
|
||||
<ul class="divided">
|
||||
{% assign categories = site.categories | sort %}
|
||||
{% assign categories = site.categories | sort_natural %}
|
||||
{% for category in categories %}
|
||||
<li><a href="/blog/categories/{{ category | first | downcase }}/">{{ category | first | replace: '-', ' '}}</a></li>
|
||||
{% endfor %}
|
||||
|
@ -1,4 +1,4 @@
|
||||
{% assign components = site.components | sort: 'title' %}
|
||||
{% assign components = site.components | sort_natural: 'title' %}
|
||||
{% assign github_main_repo = 'https://github.com/home-assistant/home-assistant/blob/master/homeassistant' %}
|
||||
<section class="aside-module grid__item one-whole lap-one-half">
|
||||
{% include edit_github.html %}
|
||||
|
@ -1,6 +1,6 @@
|
||||
<section class="aside-module grid__item one-whole lap-one-half">
|
||||
{% include edit_github.html %}
|
||||
{% assign cookbook = site.cookbook | sort: 'title' %}
|
||||
{% assign cookbook = site.cookbook | sort_natural: 'title' %}
|
||||
|
||||
<div class='section'>
|
||||
<a href='/cookbook'>Back to the cookbook</a>
|
||||
|
@ -2,8 +2,8 @@
|
||||
<div class='section'>
|
||||
<h1 class="title delta">Entries</h1>
|
||||
<ul class='divided sidebar-menu'>
|
||||
{% assign faq = site.faq | sort: 'title' %}
|
||||
{% assign categories = faq | map: 'ha_category' | uniq | sort %}
|
||||
{% assign faq = site.faq | sort_natural: 'title' %}
|
||||
{% assign categories = faq | map: 'ha_category' | uniq | sort_natural %}
|
||||
|
||||
{% for category in categories %}
|
||||
<li>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<section class="aside-module grid__item one-whole lap-one-half">
|
||||
<!-- {% include edit_github.html %} -->
|
||||
{% assign cards = site.lovelace | sort: 'title' %}
|
||||
{% assign cards = site.lovelace | sort_natural: 'title' %}
|
||||
|
||||
<div class='section'>
|
||||
<h1 class="title delta">Lovelace UI</h1>
|
||||
|
Loading…
x
Reference in New Issue
Block a user