Skip to content

Commit 7fff458

Browse files
committed
add font-awesome files locally and stop using CDN
1 parent ba7d518 commit 7fff458

21 files changed

+7992
-13
lines changed

assets/fontawesome/css/all.css

Lines changed: 7955 additions & 0 deletions
Large diffs are not rendered by default.

assets/fontawesome/css/all.min.css

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/fontawesome/css/v4-font-face.min.css

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/fontawesome/css/v4-shims.min.css

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/fontawesome/css/v5-font-face.min.css

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

layouts/partials/styles.html

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,20 @@
55
{{ $css5 := resources.Get "css/highlight.css" }}
66
{{ $css6 := resources.Get "css/coveo.css" }}
77

8-
{{ if in .Site.Params.buildtype "package" }}
98

109
<!-- load FontAwesome from assets -->
11-
{{ $cssFA := resources.Get "css/all.min.css" | fingerprint }}
12-
<link href="{{ $cssFA.RelPermalink }}" integrity="{{ $cssFA.Data.Integrity }}" rel="stylesheet" type="text/css">
10+
{{ $cssFA1 := resources.Get "fontawesome/css/all.min.css" | fingerprint "sha512" }}
11+
<link href="{{ $cssFA1.RelPermalink }}" integrity="{{ $cssFA1.Data.Integrity }}" rel="stylesheet" type="text/css">
12+
13+
{{ $cssFA2 := resources.Get "fontawesome/css/v4-font-face.min.css" | fingerprint "sha512" }}
14+
<link href="{{ $cssFA2.RelPermalink }}" integrity="{{ $cssFA2.Data.Integrity }}" rel="stylesheet" type="text/css">
15+
16+
{{ $cssFA3 := resources.Get "fontawesome/css/v5-font-face.min.css" | fingerprint "sha512" }}
17+
<link href="{{ $cssFA3.RelPermalink }}" integrity="{{ $cssFA3.Data.Integrity }}" rel="stylesheet" type="text/css">
1318

1419
<!-- load Bootstrap from local assets -->
15-
{{ $cssBootstrap := resources.Get "css/bootstrap.min.css" | fingerprint }}
16-
<link href="{{ $cssBootstrap.RelPermalink }}" integrity="{{ $cssBootstrap.Data.Integrity }}" rel="stylesheet" type="text/css">
17-
18-
{{ else }}
19-
20-
<!-- load FontAwesome from CDN -->
21-
<script src="https://kit.fontawesome.com/94f08dfe9d.js" crossorigin="anonymous"></script>
22-
<!-- load Bootstrap from CDN -->
23-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous">
24-
{{ end }}
20+
{{ $cssBootstrap := resources.Get "css/bootstrap.min.css" | fingerprint "sha512" }}
21+
<link href="{{ $cssBootstrap.RelPermalink }}" integrity="{{ $cssBootstrap.Data.Integrity }}" rel="stylesheet" type="text/css">
2522

2623
{{ if ( not ( in .Site.Params.buildtype "package" ) ) }}
2724
<!-- load Coveo CSS -->
-102 KB
Binary file not shown.
-59 KB
Binary file not shown.
-23.3 KB
Binary file not shown.

static/css/webfonts/fa-solid-900.ttf

-296 KB
Binary file not shown.

0 commit comments

Comments
 (0)