mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2025-05-09 22:16:01 +02:00
Update to Font Awesome 5
Nothing really new as far as how we're using Font Awesome, but it is good to keep up with the times and the tooling. Users that have used custom fonts in their content or layouts will need to update their icon prefixes from "fa" to "fas" or "fab" depending on which font their icon comes from. See: https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
{{ if .Params.categories }}
|
||||
<i class="fa fa-folder" aria-hidden="true"></i> {{ range $index, $category := .Params.categories }}{{ if gt $index 0 }}{{ i18n "comma" }} {{ end }}<a href="{{ "/categories/" | relLangURL }}{{ . | urlize }}" rel="category tag">{{ . }}</a>{{ end }}
|
||||
<span class="fas fa-folder" aria-hidden="true"></span> {{ range $index, $category := .Params.categories }}{{ if gt $index 0 }}{{ i18n "comma" }} {{ end }}<a href="{{ "/categories/" | relLangURL }}{{ . | urlize }}" rel="category tag">{{ . }}</a>{{ end }}
|
||||
{{ end }}
|
||||
{{ if .Params.tags }}
|
||||
<i class="fa fa-tag" aria-hidden="true"></i> {{ range $index, $tag := .Params.tags }}{{ if gt $index 0 }}{{ i18n "comma" }} {{ end }}<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}" rel="tag">{{ . }}</a>{{ end }}
|
||||
<span class="fas fa-tag" aria-hidden="true"></span> {{ range $index, $tag := .Params.tags }}{{ if gt $index 0 }}{{ i18n "comma" }} {{ end }}<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}" rel="tag">{{ . }}</a>{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{- /* vim: set ts=2 sw=2 et: */}}
|
||||
|
Reference in New Issue
Block a user