From 27b1a25a5326ab677eb47561306a41f4885c9f15 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Sun, 1 Dec 2024 17:30:55 -0700 Subject: [PATCH] refactor: Use FontAwesome icon files embedded instead of script replacement --- content/_index.md | 12 ++++++------ layouts/shortcodes/fa.html | 20 +++++++++++--------- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/content/_index.md b/content/_index.md index a8544d1..d815a21 100644 --- a/content/_index.md +++ b/content/_index.md @@ -63,15 +63,15 @@ stories. Around the web you can find me at (in order of subjective importance) -- {{< fa fab github yes >}} GitHub: [@MillironX](https://github.com/MillironX) -- {{< fa fab orcid yes >}} ORDiD: +- {{< fa github yes >}} GitHub: [@MillironX](https://github.com/MillironX) +- {{< fa orcid yes >}} ORDiD: [0000-0003-1219-9320](https://orcid.org/0000-0003-1219-9320) -- {{< fa fab gitlab yes >}} GitLab: [@MillironX](https://gitlab.com/MillironX) -- {{< fa fab vimeo yes >}} Vimeo: +- {{< fa gitlab yes >}} GitLab: [@MillironX](https://gitlab.com/MillironX) +- {{< fa vimeo yes >}} Vimeo: [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) -- {{< fa fab steam yes >}} Steam: +- {{< fa steam yes >}} Steam: [MillironX](https://steamcommunity.com/id/millironx) This list is intended to verify my identity on other sites. Please do _not_ use diff --git a/layouts/shortcodes/fa.html b/layouts/shortcodes/fa.html index c6d265f..73663c8 100644 --- a/layouts/shortcodes/fa.html +++ b/layouts/shortcodes/fa.html @@ -1,11 +1,13 @@ -{{- $faStyle := .Get 0 -}} -{{- $faName := .Get 1 -}} -{{- $isFullWidth := .Get 2 -}} - +> + {{- readFile $fontAwesomePath | safeHTML -}} +