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: menu:
main: main:
params: params:
prefix: fad icon: home
icon: fa-home
weight: -1000 weight: -1000
--- ---

View file

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

View file

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

View file

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

View file

@ -9,9 +9,8 @@ menu:
main: main:
name: Websites name: Websites
params: params:
prefix: fad icon: browser
icon: fa-browser fa-thumbnail: browser
fa-thumbnail: fad fa-browser
--- ---
I do occasionally build websites for myself and other people. Here is a list of 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="card-header">
<div class="thumb-icon-wrapper"> <div class="thumb-icon-wrapper">
<span class="thumb-icon-badge"> <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> </span>
</div> </div>
</div> </div>

View file

@ -7,7 +7,13 @@
class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}" class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}"
href="{{ .URL }}" 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 }} {{ .Name }}
</a> </a>
{{ end }} {{ end }}