Changeset 10680 for sites/trunk/trac.wordpress.org/templates/site.html
- Timestamp:
- 02/16/2021 08:22:05 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/trac.wordpress.org/templates/site.html
r10679 r10680 54 54 <xi:include href="site-ticket.html" /> 55 55 56 <!--! Append a version string to CSS files hosted on the w.org CDN --> 57 <py:match path="link[@rel='stylesheet' and starts-with(@href,'https://s.w.org/') and substring-after(@href,'.css') = '']"> 58 <link rel="stylesheet" href="${select('@href')}?v=${scripts_version}" /> 59 </py:match> 60 56 61 <!--! Styles and such. Load before first JS file (jquery.js) --> 57 <py:match path="head/script[contains(@src,'jquery.js')]"> 62 <py:match path="head/title"> 63 <title py:attrs="select('@*')"> 64 ${select('*|comment()|text()')} 65 </title> 66 58 67 <link rel="dns-prefetch" href="//s.w.org" /> 59 68 <link rel="dns-prefetch" href="//fonts.googleapis.com" /> … … 69 78 <xi:include href="wporg-head.html" /> 70 79 <meta name="viewport" content="width=device-width" /> 71 <link rel='stylesheet' href='https://s.w.org/wp-includes/css/dashicons.min.css? ${scripts_version}' type='text/css' />80 <link rel='stylesheet' href='https://s.w.org/wp-includes/css/dashicons.min.css?20150710' type='text/css' /> 72 81 <link rel="stylesheet" type="text/css" href="https://s.w.org/style/trac/wp-trac.css?${scripts_version}" /> 73 <link py:if="req.session['authenticated']" rel="stylesheet" href="https://s.w.org/wp-includes/css/wp-auth-check.css?${scripts_version}" type="text/css" media="all" /> 74 75 <script py:attrs="select('@*')"></script> 82 <link py:if="req.session['authenticated']" rel="stylesheet" href="https://s.w.org/wp-includes/css/wp-auth-check.css?ver=3.9-alpha" type="text/css" media="all" /> 76 83 77 84 <py:if test="req.environ['PATH_INFO'] == '/newticket'"> … … 91 98 <meta name="robots" content="$robots"/> 92 99 </py:if> 100 </py:match> 101 102 <!--! Append a version string to JS files hosted on the w.org CDN --> 103 <py:match path="script[starts-with(@src,'https://s.w.org/') and substring-after(@src,'.js') = '']"> 104 <script src="${select('@src')}?v=${scripts_version}">${select('*|comment()|text()')}</script> 93 105 </py:match> 94 106 … … 320 332 321 333 <!--! JavaScript --> 322 <script src="https://s.w.org/style/js/navigation.min.js? ${scripts_version}"></script>323 <script src="https://s.w.org/style/trac/jquery.caret.min.js? ${scripts_version}"></script>324 <script src="https://s.w.org/style/trac/jquery.atwho.min.js? ${scripts_version}"></script>334 <script src="https://s.w.org/style/js/navigation.min.js?20190128"></script> 335 <script src="https://s.w.org/style/trac/jquery.caret.min.js?ver=2015-02-01"></script> 336 <script src="https://s.w.org/style/trac/jquery.atwho.min.js?ver=1.0.1"></script> 325 337 <script src="https://s.w.org/style/trac/wp-trac.js?${scripts_version}"></script> 326 338 … … 370 382 371 383 <xi:include href="site-specific.html"><xi:fallback /></xi:include> 372 373 <!--! The following rules should be just before `</html>` to ensure it affects all of the document. -->374 375 <!--! Append a version string to CSS files hosted on the w.org CDN -->376 <py:match path="link[@rel='stylesheet' and starts-with(@href,'https://s.w.org/') and substring-after(@href,'.css') = '']">377 <link rel="stylesheet" href="${select('@href')}?v=${scripts_version}" />378 </py:match>379 380 <!--! Append a version string to JS files hosted on the w.org CDN -->381 <py:match path="script[starts-with(@src,'https://s.w.org/') and substring-after(@src,'.js') = '']">382 <script src="${select('@src')}?v=${scripts_version}">${select('*|comment()|text()')}</script>383 </py:match>384 385 <!--! Allow bypassing the WordPress.org CDN for testing. -->386 <py:if test="'cdn' in req.args and 'wordpress.org' == req.args.cdn">387 <py:match path="link[@rel='stylesheet' and starts-with(@href,'https://s.w.org/')]">388 <link rel="stylesheet" href="${select('@href').render().replace('s.w.org','wordpress.org')}" />389 </py:match>390 <py:match path="script[starts-with(@src,'https://s.w.org/')]">391 <script src="${select('@src').render().replace('s.w.org','wordpress.org')}">${select('*|comment()|text()')}</script>392 </py:match>393 </py:if>394 395 384 </html>
Note: See TracChangeset
for help on using the changeset viewer.