From 86c1bf1ed42845fbde41e53ddec7a42ca434b62a Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Sun, 1 Dec 2024 17:40:53 -0700 Subject: [PATCH] refactor: Replace all instaces of FontAwesome scripted icons with embedded svg --- content/_index.md | 3 +-- content/academia/_index.md | 5 ++--- content/contact/_index.html | 5 ++--- content/videos/_index.md | 5 ++--- content/websites/_index.md | 5 ++--- layouts/_default/list.html | 5 ++++- layouts/partials/sidebar.html | 8 +++++++- 7 files changed, 20 insertions(+), 16 deletions(-) diff --git a/content/_index.md b/content/_index.md index d815a21..4710eb4 100644 --- a/content/_index.md +++ b/content/_index.md @@ -8,8 +8,7 @@ layout: _default/list menu: main: params: - prefix: fad - icon: fa-home + icon: home weight: -1000 --- diff --git a/content/academia/_index.md b/content/academia/_index.md index 9a9ea19..10e4083 100644 --- a/content/academia/_index.md +++ b/content/academia/_index.md @@ -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 diff --git a/content/contact/_index.html b/content/contact/_index.html index 0f641c2..840ade4 100644 --- a/content/contact/_index.html +++ b/content/contact/_index.html @@ -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 ---
### The culmination of all art forms is that of film. diff --git a/content/websites/_index.md b/content/websites/_index.md index 4238346..df065e8 100644 --- a/content/websites/_index.md +++ b/content/websites/_index.md @@ -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 diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 9168fd5..8f63516 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -15,7 +15,10 @@
- + {{- $fontAwesomePath := print "assets/graphics/fa/" . ".svg" -}} + + {{- readFile $fontAwesomePath | safeHTML -}} +
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index c5e6473..a9e2049 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -7,7 +7,13 @@ class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}" href="{{ .URL }}" > - + {{- $fontAwesomePath := print "assets/graphics/fa/" .Params.icon ".svg" -}} + + {{- readFile $fontAwesomePath | safeHTML -}} + {{ .Name }} {{ end }}