Skip to content

Commit

Permalink
Use stable asset versions instead of site.time
Browse files Browse the repository at this point in the history
  • Loading branch information
akoeplinger committed Oct 22, 2024
1 parent 4eeeaa4 commit dcce5f2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
8 changes: 8 additions & 0 deletions _data/assetsversions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# bump this whenever you make changes to the corresponding .css/.js files in the assets folder
fontawesome: 6.1.1
highlightjs: 11.5.1
foundation: 5.5.3
main: 1
jquery: 2.1.1
modernizr: 3.7.0
normalize: 3.0.3
22 changes: 11 additions & 11 deletions _layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<title>{{ page.title }} | MonoDevelop</title>
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="stylesheet" href="/assets/normalize.min.css?version={{site.time | date_to_xmlschema | cgi_escape}}" />
<link rel="stylesheet" href="/assets/foundation.min.css?version={{site.time | date_to_xmlschema | cgi_escape}}" />
<link rel="stylesheet" href="/assets/highlightjs/a11y-dark.min.css?version={{site.time | date_to_xmlschema | cgi_escape}}" />
<link rel="stylesheet" href="/assets/normalize.min.css?version={{site.data.assetsversions.normalize}}" />
<link rel="stylesheet" href="/assets/foundation.min.css?version={{site.data.assetsversions.foundation}}" />
<link rel="stylesheet" href="/assets/highlightjs/a11y-dark.min.css?version={{site.data.assetsversions.highlightjs}}" />

<link rel="stylesheet" href="/assets/fontawesome/css/solid.min.css?version={{site.time | date_to_xmlschema | cgi_escape}}" />
<link rel="stylesheet" href="/assets/fontawesome/css/brands.min.css?version={{site.time | date_to_xmlschema | cgi_escape}}" />
<link rel="stylesheet" href="/assets/fontawesome/css/fontawesome.min.css?version={{site.time | date_to_xmlschema | cgi_escape}}" />
<link rel="stylesheet" href="/assets/fontawesome/css/solid.min.css?version={{site.data.assetsversions.foundation}}" />
<link rel="stylesheet" href="/assets/fontawesome/css/brands.min.css?version={{site.data.assetsversions.foundation}}" />
<link rel="stylesheet" href="/assets/fontawesome/css/fontawesome.min.css?version={{site.data.assetsversions.foundation}}" />

<link rel="stylesheet" href="/assets/main.css?version={{site.time | date_to_xmlschema | cgi_escape}}" />
<script src="/assets/modernizr.min.js?version={{site.time | date_to_xmlschema | cgi_escape}}"></script>
<link rel="stylesheet" href="/assets/main.css?version={{site.data.assetsversions.main}}" />
<script src="/assets/modernizr.min.js?version={{site.data.assetsversions.modernizr}}"></script>
<script src="https://wcpstatic.microsoft.com/mscc/lib/v2/wcp-consent.js"></script>
<script>
// redirect to the real domain in case someone visits the GitHub Pages domain
Expand Down Expand Up @@ -94,9 +94,9 @@
</div>
</footer>

<script src="/assets/jquery.min.js?version={{site.time | date_to_xmlschema | cgi_escape}}"></script>
<script src="/assets/foundation.min.js?version={{site.time | date_to_xmlschema | cgi_escape}}"></script>
<script src="/assets/highlightjs/highlight.min.js?version={{site.time | date_to_xmlschema | cgi_escape}}"></script>
<script src="/assets/jquery.min.js?version={{site.data.assetsversions.jquery}}"></script>
<script src="/assets/foundation.min.js?version={{site.data.assetsversions.foundation}}"></script>
<script src="/assets/highlightjs/highlight.min.js?version={{site.data.assetsversions.highlightjs}}"></script>

<script>
// allow sub pages to run custom code
Expand Down

0 comments on commit dcce5f2

Please sign in to comment.