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