diff options
author | danielkvist <d94.zaragoza@gmail.com> | 2019-03-25 01:42:06 +0300 |
---|---|---|
committer | danielkvist <d94.zaragoza@gmail.com> | 2019-03-25 01:42:06 +0300 |
commit | 33e452a8fa700877e59f200cedcb499bf317cb4a (patch) | |
tree | b4d4e1a61499a7311f2c91b45049331ef664df7f /layouts | |
parent | 66dbc77f3281b81c989104c8c202a2adbf088f75 (diff) |
add Font Awesome
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/fontawesome.html | 11 | ||||
-rw-r--r-- | layouts/partials/footer.html | 3 |
2 files changed, 14 insertions, 0 deletions
diff --git a/layouts/partials/fontawesome.html b/layouts/partials/fontawesome.html new file mode 100644 index 0000000..9c08eff --- /dev/null +++ b/layouts/partials/fontawesome.html @@ -0,0 +1,11 @@ +{{ $version := "5.8.1" }} +{{ $integrity := "sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" }} + +{{ 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>
\ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index bb5f0ce..b7a9390 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -12,4 +12,7 @@ <!-- JS Script --> {{ partial "scripts.html" . }} + <!-- Font Awesome --> + {{ partial "fontawesome.html" . }} + </footer>
\ No newline at end of file |