Skip to content

Commit

Permalink
Fixes #4: update coveo jsui version (#9)
Browse files Browse the repository at this point in the history
* Update coveo CDN js scripts

Upgrade coveo js to use v2.10104

* Update Coveo styles

Update styles.html to use Coveo UI v2.10104.0
  • Loading branch information
jputrino authored May 30, 2023
1 parent 80697b8 commit 461cece
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions layouts/partials/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@

{{ if ( not ( in .Site.Params.buildtype "package" ) ) }}
<!-- START COVEO -->
<script class="coveo-script" src="https://static.cloud.coveo.com/searchui/v2.10104/0/js/CoveoJsSearch.Lazy.min.js" integrity="sha512-HxdDBIp5snbqtu1TPkBnXLKEvN9IPz3PeZW8zT9KfsflV9Ck822XDroDlpVbfCfXeiu8C0RDVn0fdu7aGy/H1g==" crossorigin="anonymous"></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.10104/0/js/templates/templates.js" integrity="sha512-CR0Yk/LIwgh1MsKqjecDp/r6F9ipKc6gA+4+E1pplT3N3r1pk+la/HaqyDiKtjOFwrwIIbIYBFrUJgPql93QHw==" crossorigin="anonymous"></script>

{{ $coveo := resources.Get "js/coveo.js" }}
{{ $secureCoveo := $coveo | minify | fingerprint "sha512" }}
Expand Down
3 changes: 1 addition & 2 deletions layouts/partials/styles.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@

{{ if ( not ( in .Site.Params.buildtype "package" ) ) }}
<!-- load Coveo CSS -->
<link rel="stylesheet" href="https://static.cloud.coveo.com/searchui/v2.8959/css/CoveoFullSearch.min.css" />
{{ end }}
<link rel="stylesheet" href="https://static.cloud.coveo.com/searchui/v2.10104/0/css/CoveoFullSearch.min.css" integrity="sha512-9/A9yVCU4GS6/iIwTRJKnan4Hf8gDKj3anwItN9QCsU8SixaT5xkjjWsZ/iq0TWaizhtqOLacadXJfxHlwYCcA==" crossorigin="anonymous" />{{ end }}

{{ $cssHeader := $css1 | minify | fingerprint "sha512"}}
<link href="{{ $cssHeader.RelPermalink }}" rel="stylesheet" type="text/css">
Expand Down

0 comments on commit 461cece

Please sign in to comment.