data: sort terms in post information

Sorts alphabetically the categories and tags in the post information.

Fixes #13.

Co-Authored-by: Igor Milhit <igor@milhit.ch>
pull/33/head
iGor milhit 2020-06-15 18:25:06 +02:00
parent e541ece884
commit 26b0b8cf51
Signed by: igor
GPG Key ID: 692D97C3D0228A99
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
{{ with .Params.categories }} {{ with .Params.categories }}
<li>Catégories&#x202F;: <li>Catégories&#x202F;:
<ul> <ul>
{{ range . }} {{ range sort . }}
<li class="post-taxonomies"> <a href="{{ "categories" | absURL}}/{{ . | urlize }}">{{ . }}</a> </li> <li class="post-taxonomies"> <a href="{{ "categories" | absURL}}/{{ . | urlize }}">{{ . }}</a> </li>
{{ end }} {{ end }}
</ul> </ul>
@ -15,7 +15,7 @@
{{ with .Params.tags }} {{ with .Params.tags }}
<li>Tags&#x202F;: <li>Tags&#x202F;:
<ul> <ul>
{{ range . }} {{ range sort . }}
<li class="post-taxonomies"> <a href="{{ "tags" | absURL }}/{{ . | urlize }}">{{ . }}</a> </li> <li class="post-taxonomies"> <a href="{{ "tags" | absURL }}/{{ . | urlize }}">{{ . }}</a> </li>
{{ end }} {{ end }}
</ul> </ul>