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)
|
- [Yudi Widiyanto](https://github.com/yudiwdynto)
|
||||||
- [Łukasz Mróz](https://github.com/mrozlukasz)
|
- [Łukasz Mróz](https://github.com/mrozlukasz)
|
||||||
- [Jia "Jay" Tan](https://github.com/j7an)
|
- [Jia "Jay" Tan](https://github.com/j7an)
|
||||||
|
- [Ryan](https://github.com/alrayyes)
|
||||||
|
|
|
@ -10,13 +10,13 @@
|
||||||
{{ range sort .}}
|
{{ range sort .}}
|
||||||
{{ if .icon }}
|
{{ if .icon }}
|
||||||
<li>
|
<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>
|
<i class="{{ .icon }}" aria-hidden="true"></i>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ .url }}" aria-label="{{ .name }}">{{ .name }}</a>
|
<a href="{{ .url }}" aria-label="{{ .name }}" {{ if .rel }}rel="{{ .rel }}"{{ end }}>{{ .name }}</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue