Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lxndrblz/anatole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bilz <mail@alexbilz.com>2022-02-26 13:43:36 +0300
committerAlexander Bilz <mail@alexbilz.com>2022-02-26 13:43:36 +0300
commit2d0d448284c65746361730ca2c10185a616ca542 (patch)
tree1ef5bbb43ae0504bc61f0652207cdc48a9a19b2e /layouts
parent619cd7e2925611ecb5d46d24ec3b2239ab34a43d (diff)
feat: load fontawesome from local server
Closes #299
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/head.html22
1 files changed, 20 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 8719460..5fc89cb 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -91,11 +91,29 @@
/>
{{ end }}
+ {{ $style := resources.Get "fontawesome/css/fontawesome.min.css" | resources.Fingerprint }}
<link
rel="stylesheet"
- href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css"
- integrity="sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOhtIloNl9GIKS57V1MyNsYpYcUrUeQc9vNfzsWfV28IaLL3i96P9sdNyeRssA=="
+ href="{{ $style.RelPermalink }}"
+ integrity="{{ $style.Data.Integrity }}"
crossorigin="anonymous"
+ type="text/css"
+ />
+ {{ $style := resources.Get "fontawesome/css/solid.min.css" | resources.Fingerprint }}
+ <link
+ rel="stylesheet"
+ href="{{ $style.RelPermalink }}"
+ integrity="{{ $style.Data.Integrity }}"
+ crossorigin="anonymous"
+ type="text/css"
+ />
+ {{ $style := resources.Get "fontawesome/css/brands.min.css" | resources.Fingerprint }}
+ <link
+ rel="stylesheet"
+ href="{{ $style.RelPermalink }}"
+ integrity="{{ $style.Data.Integrity }}"
+ crossorigin="anonymous"
+ type="text/css"
/>
{{ if .Params.redirectUrl }}
{{ $style := resources.Get "css/spinner.css" | resources.Minify | resources.Fingerprint }}