mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
fix(i): make change for FontAwesome v7
https://docs.fontawesome.com/upgrade/whats-changed/
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
{{- with .Params.titleIcon -}}
|
||||
{{- $titleIcon = . -}}
|
||||
{{- end -}}
|
||||
{{- dict "Class" (add $titleIcon " fa-fw me-1") | partial "plugin/icon.html" -}}
|
||||
{{- dict "Class" (add $titleIcon " me-1") | partial "plugin/icon.html" -}}
|
||||
{{- title (.Params.Title | default ((T .Section) | default .Section | dict "Some" | T "allSome")) }} <sup>{{ .Pages.Len }}</sup>
|
||||
</h1>
|
||||
{{- /* Total word count */ -}}
|
||||
@@ -27,7 +27,7 @@
|
||||
{{- $humanizedNum = printf "%.2fK" (div $humanizedNum 1000.0) -}}
|
||||
{{- end -}}
|
||||
<p class="single-subtitle total-word-count" title='{{- T "section.totalWordCount" . }}'>
|
||||
{{- dict "Class" "fa-regular fa-keyboard fa-fw" | partial "plugin/icon.html" }} {{ T "section.totalWordCount" (dict "Count" $humanizedNum) -}}
|
||||
{{- dict "Class" "fa-regular fa-keyboard" | partial "plugin/icon.html" }} {{ T "section.totalWordCount" (dict "Count" $humanizedNum) -}}
|
||||
</p>
|
||||
{{- end -}}
|
||||
</div>
|
||||
@@ -43,7 +43,7 @@
|
||||
{{- partial "recently-updated.html" . -}}
|
||||
{{- range $pages.PageGroups -}}
|
||||
<h2 class="group-title">
|
||||
{{- dict "Class" "fa-regular fa-calendar fa-fw me-1" | partial "plugin/icon.html" -}}
|
||||
{{- dict "Class" "fa-regular fa-calendar me-1" | partial "plugin/icon.html" -}}
|
||||
{{- .Key -}}
|
||||
</h2>
|
||||
{{- range .Pages -}}
|
||||
@@ -51,7 +51,7 @@
|
||||
<a href="{{ .RelPermalink }}" class="archive-item-link">
|
||||
{{- $repost := .Params.repost | default dict -}}
|
||||
{{- if eq $repost.enable true -}}
|
||||
{{- dict "Class" "fa-solid fa-share fa-fw text-success me-1" | partial "plugin/icon.html" -}}
|
||||
{{- dict "Class" "fa-solid fa-share text-success me-1" | partial "plugin/icon.html" -}}
|
||||
{{- end -}}
|
||||
{{- cond (.Param "capitalizeTitles") (title .LinkTitle) .LinkTitle -}}
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user