aboutsummaryrefslogtreecommitdiff
path: root/themes/terrassa/layouts/partials/fontawesome.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/terrassa/layouts/partials/fontawesome.html')
-rw-r--r--themes/terrassa/layouts/partials/fontawesome.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/themes/terrassa/layouts/partials/fontawesome.html b/themes/terrassa/layouts/partials/fontawesome.html
new file mode 100644
index 0000000..6cc5fd5
--- /dev/null
+++ b/themes/terrassa/layouts/partials/fontawesome.html
@@ -0,0 +1,15 @@
+{{ $version := "5.7.2" }}
+{{ $integrity := "sha384-0pzryjIRos8mFBWMzSSZApWtPl/5++eIfzYmTgBBmXYdhvxPc+XcFEk+zJwDgWbP" }}
+{{ if and $.Site.Params.fa.version $.Site.Params.fa.integrity }}
+{{ $version = $.Site.Params.fa.version }}
+{{ $integrity = $.Site.Params.fa.integrity }}
+{{ end }}
+
+{{ $src := printf "%s%s%s" "https://use.fontawesome.com/releases/v" $version "/js/all.js" }}
+
+<script
+ defer
+ src="{{ $src }}"
+ integrity="{{ $integrity }}"
+ crossorigin="anonymous"
+></script>