Home rel link (#195)
* Added rel support * Added name to contributers file
This commit is contained in:
parent
90b17fad5c
commit
607a3e2ad9
|
@ -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)
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue