Skip to content

Commit

Permalink
Merge 97ba3d2 into 1562968
Browse files Browse the repository at this point in the history
  • Loading branch information
sghoweri authored Nov 2, 2018
2 parents 1562968 + 97ba3d2 commit 0c4eb84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion apps/bolt-site/templates/_site-footer.twig
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
{% set assets = [] %}
{% endif %}

<script src="{{ assets["bolt-global.js"] | default("/build/bolt-global.js") }}" async></script>
{% set cacheBuster = bolt.data.config.prod ? "?v=" ~ bolt.data.fullManifest.version : "" %}

<script src="{{ assets["bolt-global.js"] | default("/build/bolt-global.js") }}{{ cacheBuster }}" async></script>
</body>
</html>
3 changes: 2 additions & 1 deletion apps/bolt-site/templates/_site-head.twig
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
{% endif %}
{% set hasSidebar = nestedPages or sidebar %}

{% set cacheBuster = bolt.data.config.prod ? "?v=" ~ bolt.data.fullManifest.version : "" %}

<!DOCTYPE html>
<html lang="en-US" class="{{ bolt.data.config.prod ? '' : 'js-fonts-loaded' }}">
Expand Down Expand Up @@ -56,7 +57,7 @@
<meta name="twitter:image" content="https://boltdesignsystem.com/images/bolt-logo-480.png" />
<meta name="twitter:site" content="@pega" />

<link rel="stylesheet" href="{{ assets["bolt-global.css"] | default("/build/bolt-global.css") }}" media="all" />
<link rel="stylesheet" href="{{ assets["bolt-global.css"] | default("/build/bolt-global.css") }}{{ cacheBuster }}" media="all" />

{# @TODO: wire this up to use Critical CSS #}
<style>
Expand Down

0 comments on commit 0c4eb84

Please sign in to comment.