Fix social icons sort

This commit is contained in:
Luiz F. A. de Prá
2020-02-05 17:04:52 -03:00
parent c600078921
commit 4b5e654abf

View File

@@ -7,7 +7,7 @@
<h2>{{ .Site.Params.info }}</h2>
{{ with .Site.Params.social }}
<ul>
{{ range sort .}}
{{ range sort . "weight" }}
{{ if .icon }}
<li>
<a href="{{ .url }}" aria-label="{{ .name }}" {{ if .rel }}rel="{{ .rel }}"{{ end }} {{ if .target }}target="{{ .target }}"{{ end }} {{ if .type }}type="{{ .type }}"{{ end }}>