generated from nginxinc/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from nginxinc/use-local-files
feat: Use local files
- Loading branch information
Showing
30 changed files
with
8,034 additions
and
1,390 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module github.com/nginxinc/nginx-hugo-theme | ||
|
||
go 1.19 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,26 @@ | ||
{{ $kubejs := resources.Get "/js/kube.js" }} | ||
{{ $jquery := resources.Get "/js/jquery-3-6-4.min.js" }} | ||
|
||
{{ if .Site.IsServer }} | ||
<script src="{{ $kubejs.RelPermalink }}"></script> | ||
{{ else }} | ||
{{ $kubejs := $kubejs | minify | fingerprint "sha512" }} | ||
<script src="{{ $kubejs.RelPermalink }}" type="text/javascript" integrity="{{ $kubejs.Data.Integrity }}"></script> | ||
{{ end }} | ||
<script src="{{ $jquery.RelPermalink }}" type="text/javascript" integrity="{{ $jquery.Data.Integrity }}"></script> | ||
|
||
{{ if in .Site.Params.buildtype "package" }} | ||
{{ $kubejs := resources.Get "/js/kube.js" | minify | fingerprint "sha512" }} | ||
<script src="{{ $kubejs.RelPermalink }}" type="text/javascript" integrity="{{ $kubejs.Data.Integrity }}"></script> | ||
|
||
<!-- load FontAwesome from assets --> | ||
{{ $jsFA := resources.Get "js/all.min.js" | fingerprint }} | ||
<script src="{{ $jsFA.RelPermalink }}" type="text/javascript" integrity="{{ $jsFA.Data.Integrity }}"></script> | ||
|
||
<!-- load Bootstrap from local assets --> | ||
{{ $jsBootstrap := resources.Get "js/bootstrap.bundle.min.js" | fingerprint }} | ||
<script src="{{ $jsBootstrap.RelPermalink }}" type="text/javascript" integrity="{{ $jsBootstrap.Data.Integrity }}"></script> | ||
|
||
{{ else }} | ||
|
||
<!-- Load Bootstrap from CDN --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns" crossorigin="anonymous"></script> | ||
<!-- end Bootstrap --> | ||
{{ $jsBootstrap := resources.Get "js/bootstrap.bundle.min.js" | fingerprint "sha512" }} | ||
<script src="{{ $jsBootstrap.RelPermalink }}" type="text/javascript" integrity="{{ $jsBootstrap.Data.Integrity }}"></script> | ||
|
||
<!-- Don't need to load FontAwesome here as it's handled in partials/styles.html --> | ||
|
||
{{ end }} | ||
|
||
{{ if ( not ( in .Site.Params.buildtype "package" ) ) }} | ||
<!-- START COVEO --> | ||
|
||
<script class="coveo-script" src="https://static.cloud.coveo.com/searchui/v2.8959/js/CoveoJsSearch.Lazy.min.js"></script> | ||
<script class="coveo-script" src="https://static.cloud.coveo.com/searchui/v2.8959/js/CoveoJsSearch.Lazy.min.js"></script> | ||
|
||
<script src="https://static.cloud.coveo.com/searchui/v2.8959/js/templates/templates.js"></script> | ||
<script src="https://static.cloud.coveo.com/searchui/v2.8959/js/templates/templates.js"></script> | ||
|
||
{{ $coveo := resources.Get "js/coveo.js" }} | ||
{{ $secureCoveo := $coveo | minify | fingerprint "sha512" }} | ||
<script src="{{ $secureCoveo.RelPermalink }}" integrity="{{ $secureCoveo.Data.Integrity }}" type="text/javascript"></script> | ||
{{ $coveo := resources.Get "js/coveo.js" }} | ||
{{ $secureCoveo := $coveo | minify | fingerprint "sha512" }} | ||
<script src="{{ $secureCoveo.RelPermalink }}" integrity="{{ $secureCoveo.Data.Integrity }}" type="text/javascript"></script> | ||
|
||
<!-- END COVEO --> | ||
{{ end }} | ||
|
@@ -48,10 +32,11 @@ | |
{{ $redoc := $redoc | fingerprint "sha512" }} | ||
|
||
<!-- only load the redoc js if we're on an api reference page --> | ||
{{ if and (in .Params.doctypes "reference") (in .Params.tags "api") }}<script src="{{$redoc.RelPermalink}}" type="text/javascript"></script>{{ end }} | ||
{{ if and (in .Params.doctypes "reference") (in .Params.tags "api") }} | ||
<script src="{{$redoc.RelPermalink}}" type="text/javascript"></script>{{ end }} | ||
|
||
{{ end }} | ||
|
||
<!-- Load Sidebar javascript --> | ||
{{ $jsSidebar := resources.Get "js/sidebar.js" | fingerprint }} | ||
<script src="{{ $jsSidebar.RelPermalink }}" type="text/javascript" integrity="{{ $jsSidebar.Data.Integrity }}"></script> | ||
{{ $jsSidebar := resources.Get "js/sidebar.js" | minify | fingerprint "sha512" }} | ||
<script src="{{ $jsSidebar.RelPermalink }}" type="text/javascript" integrity="{{ $jsSidebar.Data.Integrity }}"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,23 +5,20 @@ | |
{{ $css5 := resources.Get "css/highlight.css" }} | ||
{{ $css6 := resources.Get "css/coveo.css" }} | ||
|
||
{{ if in .Site.Params.buildtype "package" }} | ||
|
||
<!-- load FontAwesome from assets --> | ||
{{ $cssFA := resources.Get "css/all.min.css" | fingerprint }} | ||
<link href="{{ $cssFA.RelPermalink }}" integrity="{{ $cssFA.Data.Integrity }}" rel="stylesheet" type="text/css"> | ||
{{ $cssFA1 := resources.Get "fontawesome/css/all.min.css" | fingerprint "sha512" }} | ||
<link href="{{ $cssFA1.RelPermalink }}" integrity="{{ $cssFA1.Data.Integrity }}" rel="stylesheet" type="text/css"> | ||
|
||
{{ $cssFA2 := resources.Get "fontawesome/css/v4-font-face.min.css" | fingerprint "sha512" }} | ||
<link href="{{ $cssFA2.RelPermalink }}" integrity="{{ $cssFA2.Data.Integrity }}" rel="stylesheet" type="text/css"> | ||
|
||
{{ $cssFA3 := resources.Get "fontawesome/css/v5-font-face.min.css" | fingerprint "sha512" }} | ||
<link href="{{ $cssFA3.RelPermalink }}" integrity="{{ $cssFA3.Data.Integrity }}" rel="stylesheet" type="text/css"> | ||
|
||
<!-- load Bootstrap from local assets --> | ||
{{ $cssBootstrap := resources.Get "css/bootstrap.min.css" | fingerprint }} | ||
<link href="{{ $cssBootstrap.RelPermalink }}" integrity="{{ $cssBootstrap.Data.Integrity }}" rel="stylesheet" type="text/css"> | ||
|
||
{{ else }} | ||
|
||
<!-- load FontAwesome from CDN --> | ||
<script src="https://kit.fontawesome.com/94f08dfe9d.js" crossorigin="anonymous"></script> | ||
<!-- load Bootstrap from CDN --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous"> | ||
{{ end }} | ||
{{ $cssBootstrap := resources.Get "css/bootstrap.min.css" | fingerprint "sha512" }} | ||
<link href="{{ $cssBootstrap.RelPermalink }}" integrity="{{ $cssBootstrap.Data.Integrity }}" rel="stylesheet" type="text/css"> | ||
|
||
{{ if ( not ( in .Site.Params.buildtype "package" ) ) }} | ||
<!-- load Coveo CSS --> | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+176 KB
static/css/webfonts/fa-brands-400.ttf → ...ic/fontawesome/webfonts/fa-brands-400.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.