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

View File

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