fix: fix icon css bug

This commit is contained in:
Dillon
2019-08-26 15:17:21 +08:00
parent 7639927bd5
commit 45c9281131
11 changed files with 26 additions and 20 deletions

View File

@@ -5,9 +5,9 @@
<h2 class="post-title animated pulse faster">
{{ $taxonomy := .Data.Singular }}
{{ if eq $taxonomy "category" }}
<i class="far fa-folder-open"></i>&nbsp;{{ .Title }}
<i class="far fa-folder-open"></i>{{ .Title }}
{{ else if eq $taxonomy "tag" }}
<i class="fas fa-tag"></i>&nbsp;{{ .Title }}
<i class="fas fa-tag"></i>{{ .Title }}
{{ else }}
{{ printf "%s - %s" (T $taxonomy | default (humanize $taxonomy)) .Title }}
{{ end }}