refactor: Use FontAwesome icon files embedded instead of script replacement

This commit is contained in:
Thomas A. Christensen II 2024-12-01 17:30:55 -07:00
parent f914883951
commit 27b1a25a53
Signed by: millironx
GPG key ID: B7044A3432851F64
2 changed files with 17 additions and 15 deletions

View file

@ -63,15 +63,15 @@ stories.
Around the web you can find me at (in order of subjective importance) Around the web you can find me at (in order of subjective importance)
- {{< fa fab github yes >}} GitHub: [@MillironX](https://github.com/MillironX) - {{< fa github yes >}} GitHub: [@MillironX](https://github.com/MillironX)
- {{< fa fab orcid yes >}} ORDiD: - {{< fa orcid yes >}} ORDiD:
[0000-0003-1219-9320](https://orcid.org/0000-0003-1219-9320) [0000-0003-1219-9320](https://orcid.org/0000-0003-1219-9320)
- {{< fa fab gitlab yes >}} GitLab: [@MillironX](https://gitlab.com/MillironX) - {{< fa gitlab yes >}} GitLab: [@MillironX](https://gitlab.com/MillironX)
- {{< fa fab vimeo yes >}} Vimeo: - {{< fa vimeo yes >}} Vimeo:
[Thomas Christensen II](https://vimeo.com/tchristensenii) [Thomas Christensen II](https://vimeo.com/tchristensenii)
- {{< fa fab stack-overflow yes >}} StackExchange: - {{< fa stack-overflow yes >}} StackExchange:
[Milliron X](https://stackexchange.com/users/4863541/milliron-x) [Milliron X](https://stackexchange.com/users/4863541/milliron-x)
- {{< fa fab steam yes >}} Steam: - {{< fa steam yes >}} Steam:
[MillironX](https://steamcommunity.com/id/millironx) [MillironX](https://steamcommunity.com/id/millironx)
This list is intended to verify my identity on other sites. Please do _not_ use This list is intended to verify my identity on other sites. Please do _not_ use

View file

@ -1,11 +1,13 @@
{{- $faStyle := .Get 0 -}} {{- $faName := .Get 0 -}}
{{- $faName := .Get 1 -}} {{- $isFullWidth := .Get 1 -}}
{{- $isFullWidth := .Get 2 -}}
<i {{- $fontAwesomePath := print "assets/graphics/fa/" $faName ".svg" -}}
class="
{{- $faStyle }}
fa-{{ $faName }} <span
{{- if eq $isFullWidth "yes" }} class="fa-container{{- if eq $isFullWidth "yes" }}
fa-fw fa-fw
{{ end -}}" {{ end -}}"
></i> >
{{- readFile $fontAwesomePath | safeHTML -}}
</span>