Changeset 7093
- Timestamp:
- 04/11/2018 06:57:41 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/trac.wordpress.org/templates/site.html
r7089 r7093 5 5 6 6 <?python 7 scripts_version = '9 5'7 scripts_version = '96' 8 8 project_slug = req.environ['HTTP_HOST'].split(':')[0].split('.')[0] 9 9 wporg_endpoint = 'https://make.wordpress.org/' + project_slug + '/' … … 38 38 39 39 <!--! Append a version string to CSS files hosted on the w.org CDN --> 40 <py:if test="project_slug == 'meta'"> 41 <py:match path="link[@rel='stylesheet' and starts-with(@href,'https://s.w.org/') and substring-after(@href,'.css') = '']"> 42 <link rel="stylesheet" href="${select('@href')}?v=${scripts_version}" /> 43 </py:match> 44 </py:if> 40 <py:match path="link[@rel='stylesheet' and starts-with(@href,'https://s.w.org/') and substring-after(@href,'.css') = '']"> 41 <link rel="stylesheet" href="${select('@href')}?v=${scripts_version}" /> 42 </py:match> 45 43 46 44 <!--! Styles and such. Load before first JS file (jquery.js) --> … … 66 64 67 65 <!--! Append a version string to JS files hosted on the w.org CDN --> 68 <py:if test="project_slug == 'meta'"> 69 <py:match path="script[starts-with(@src,'https://s.w.org/') and substring-after(@src,'.js') = '']"> 70 <script src="${select('@src')}?v=${scripts_version}">${select('*|comment()|text()')}</script> 71 </py:match> 72 </py:if> 66 <py:match path="script[starts-with(@src,'https://s.w.org/') and substring-after(@src,'.js') = '']"> 67 <script src="${select('@src')}?v=${scripts_version}">${select('*|comment()|text()')}</script> 68 </py:match> 73 69 74 70 <!--! Remove Trac logo and footer -->
Note: See TracChangeset
for help on using the changeset viewer.