diff options
author | naro143 <y.ishimi@itdharman.com> | 2019-09-30 05:50:42 +0300 |
---|---|---|
committer | naro143 <y.ishimi@itdharman.com> | 2019-09-30 05:50:42 +0300 |
commit | 27c76919c9a2f642d40cea90830327bd3048badc (patch) | |
tree | a81318a92a75cd53d89c21ad68f5bb977f962d30 /layouts | |
parent | 700238ba958f586969eadd651a548ea5e2c8a8bb (diff) |
fix: home social list style
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/home.html | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/layouts/partials/home.html b/layouts/partials/home.html index 2ee0cda..5c4ce9f 100644 --- a/layouts/partials/home.html +++ b/layouts/partials/home.html @@ -6,19 +6,17 @@ <h1>{{ .Site.Params.author }}</h1> <h2>{{ .Site.Params.info }}</h2> {{ with .Site.Params.social }} - <ul> - {{ range sort .}} - {{ if .icon }} - <li> - <a href="{{ .url }}" aria-label="{{ .name }}" {{ if .rel }}rel="{{ .rel }}"{{ end }}> - <i class="{{ .icon }}" aria-hidden="true"></i> - </a> - </li> - {{ else }} - <li> - <a href="{{ .url }}" aria-label="{{ .name }}" {{ if .rel }}rel="{{ .rel }}"{{ end }}>{{ .name }}</a> - </li> - {{ end }} + <ul class="social-list"> + {{ range sort . "weight"}} + <li class="social-item"> + <a href="{{ .url }}" aria-label="{{ .name }}" {{ if .rel }}rel="{{ .rel }}"{{ end }}> + {{ if .icon }} + <i class="{{ .icon }}" aria-hidden="true"></i> + {{ else }} + {{ .name }} + {{ end }} + </a> + </li> {{ end }} </ul> {{ end }} |