Explorar o código

Fix social icons sort

Luiz F. A. de Prá %!s(int64=5) %!d(string=hai) anos
pai
achega
4b5e654abf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      layouts/partials/home.html

+ 1 - 1
layouts/partials/home.html

@@ -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 }}>