aboutsummaryrefslogtreecommitdiff
path: root/themes/terrassa/layouts/partials/fontawesome.html
blob: 6cc5fd5ae87d70f930ab31ee4791dd8ef065d3e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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>