move icons inside anchor elements

This commit is contained in:
Ray Elliott 2020-02-18 21:32:55 +00:00
parent 56ec9a6391
commit a296989a54
2 changed files with 2 additions and 10 deletions

View File

@ -1,9 +1,5 @@
<div class="categories">
<i class="fas fa-folder"></i>
{{- range $index, $el := . -}}
{{- if gt $index 0 }}
<span class="separator"></span>
{{- end }}
<a href="{{ ( printf "categories/%s/" ( . | urlize ) ) | relLangURL }}">{{ . }}</a>
<a href="{{ ( printf "categories/%s/" ( . | urlize ) ) | relLangURL }}"><i class="fas fa-folder"></i>{{ . }}</a>
{{- end -}}
</div>

View File

@ -1,9 +1,5 @@
<div class="tags">
<i class="fas fa-tag"></i>
{{- range $index, $el := . -}}
{{- if gt $index 0 }}
<span class="separator"></span>
{{- end }}
<a href="{{ ( printf "tags/%s/" ( . | urlize ) ) | relLangURL }}">{{ . }}</a>
<a href="{{ ( printf "tags/%s/" ( . | urlize ) ) | relLangURL }}"><i class="fas fa-tag"></i>{{ . }}</a>
{{- end -}}
</div>