mirror of https://github.com/luizdepra/hugo-coder.git

Ryan Kes
26.09.2019 607a3e2ad94a9e43a170a2968d3d84a9ece229e6
Home rel link (#195)

* Added rel support

* Added name to contributers file
2 files modified
5 ■■■■■ changed files
CONTRIBUTORS.md 1 ●●●● patch | view | raw | blame | history
layouts/partials/home.html 4 ●●●● patch | view | raw | blame | history
CONTRIBUTORS.md
@@ -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)
layouts/partials/home.html
@@ -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 }}