refactor: Use FontAwesome icon files embedded instead of script replacement
This commit is contained in:
parent
f914883951
commit
27b1a25a53
2 changed files with 17 additions and 15 deletions
|
@ -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
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
{{- $faStyle := .Get 0 -}}
|
||||
{{- $faName := .Get 1 -}}
|
||||
{{- $isFullWidth := .Get 2 -}}
|
||||
<i
|
||||
class="
|
||||
{{- $faStyle }}
|
||||
fa-{{ $faName }}
|
||||
{{- if eq $isFullWidth "yes" }}
|
||||
{{- $faName := .Get 0 -}}
|
||||
{{- $isFullWidth := .Get 1 -}}
|
||||
|
||||
{{- $fontAwesomePath := print "assets/graphics/fa/" $faName ".svg" -}}
|
||||
|
||||
|
||||
<span
|
||||
class="fa-container{{- if eq $isFullWidth "yes" }}
|
||||
fa-fw
|
||||
{{ end -}}"
|
||||
></i>
|
||||
>
|
||||
{{- readFile $fontAwesomePath | safeHTML -}}
|
||||
</span>
|
||||
|
|
Loading…
Reference in a new issue