Home rel link (#195)

* Added rel support

* Added name to contributers file
This commit is contained in:
Ryan Kes 2019-06-26 15:09:47 +02:00 committed by Luiz F. A. de Prá
parent 90b17fad5c
commit 607a3e2ad9
2 changed files with 3 additions and 2 deletions

View File

@ -39,3 +39,4 @@
- [Yudi Widiyanto](https://github.com/yudiwdynto)
- [Łukasz Mróz](https://github.com/mrozlukasz)
- [Jia "Jay" Tan](https://github.com/j7an)
- [Ryan](https://github.com/alrayyes)

View File

@ -10,13 +10,13 @@
{{ range sort .}}
{{ if .icon }}
<li>
<a href="{{ .url }}" aria-label="{{ .name }}">
<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 }}">{{ .name }}</a>
<a href="{{ .url }}" aria-label="{{ .name }}" {{ if .rel }}rel="{{ .rel }}"{{ end }}>{{ .name }}</a>
</li>
{{ end }}
{{ end }}