refactor: Replace all instaces of FontAwesome scripted icons with embedded svg

This commit is contained in:
Thomas A. Christensen II 2024-12-01 17:40:53 -07:00
parent 85ec5eebbc
commit 86c1bf1ed4
Signed by: millironx
GPG key ID: B7044A3432851F64
7 changed files with 20 additions and 16 deletions

View file

@ -8,8 +8,7 @@ layout: _default/list
menu:
main:
params:
prefix: fad
icon: fa-home
icon: home
weight: -1000
---

View file

@ -9,10 +9,9 @@ menu:
main:
name: Academia
params:
prefix: fad
icon: fa-university
icon: university
weight: 20
fa-thumbnail: fad fa-university
fa-thumbnail: university
---
> I have spent too long in school and not enough time in the middle of nowhere

View file

@ -11,10 +11,9 @@ menu:
main:
name: Contact
params:
prefix: fad
icon: fa-file-signature
icon: file-signature
weight: 1
fa-thumbnail: fad fa-file-signature
fa-thumbnail: file-signature
---
<form

View file

@ -9,9 +9,8 @@ description: Showcase of my own videos
menu:
main:
params:
prefix: fad
icon: fa-video
fa-thumbnail: fad fa-video
icon: video
fa-thumbnail: video
---
> ### The culmination of all art forms is that of film.

View file

@ -9,9 +9,8 @@ menu:
main:
name: Websites
params:
prefix: fad
icon: fa-browser
fa-thumbnail: fad fa-browser
icon: browser
fa-thumbnail: browser
---
I do occasionally build websites for myself and other people. Here is a list of

View file

@ -15,7 +15,10 @@
<div class="card-header">
<div class="thumb-icon-wrapper">
<span class="thumb-icon-badge">
<i class="fa-fw {{ . }}"></i>
{{- $fontAwesomePath := print "assets/graphics/fa/" . ".svg" -}}
<span class="fa-container fa-fw">
{{- readFile $fontAwesomePath | safeHTML -}}
</span>
</span>
</div>
</div>

View file

@ -7,7 +7,13 @@
class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}"
href="{{ .URL }}"
>
<i class="{{ .Params.prefix }} {{ .Params.icon }} fa-fw"></i>
{{- $fontAwesomePath := print "assets/graphics/fa/" .Params.icon ".svg" -}}
<span
class="fa-container
fa-fw"
>
{{- readFile $fontAwesomePath | safeHTML -}}
</span>
{{ .Name }}
</a>
{{ end }}