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
parent
e541ece884
commit
26b0b8cf51
|
@ -6,7 +6,7 @@
|
||||||
{{ with .Params.categories }}
|
{{ with .Params.categories }}
|
||||||
<li>Catégories :
|
<li>Catégories :
|
||||||
<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 :
|
<li>Tags :
|
||||||
<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>
|
||||||
|
|
Loading…
Reference in New Issue