|
44 | 44 | {%- endblock -%}
|
45 | 45 | </title>
|
46 | 46 |
|
47 |
| - <meta charset="utf-8"/> |
48 |
| - <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 47 | + {{~ include('@W3CWebsiteTemplates/_common-head.html.twig') }} |
| 48 | + |
49 | 49 | <meta name="description" content="{% block description %}{{ page.excerpt|default('page.default_description'|trans({}, 'w3c_website_templates_bundle')) }}{% endblock %}"/>
|
50 | 50 | <meta name="thumbnail" content="{{ thumbnail }}"/>
|
51 | 51 | {# <meta property="fb:app_id" content="__hardcoded_fb_app_id__"> #}
|
|
72 | 72 | {%- if page.expiryDate is defined and page.expiryDate -%}
|
73 | 73 | <meta name="robots" content="unavailable_after: {{ page.expiryDate }}"/>
|
74 | 74 | {% endif %}
|
75 |
| - <link rel="home" href="https://www.w3.org/"/> |
76 |
| - <link rel="icon" type="image/png" href="https://www.w3.org/assets/logos/w3c/favicon-32.png"/> |
77 |
| - <link rel="apple-touch-icon" type="image/png" href="https://www.w3.org/assets/logos/w3c/favicon-180.png"/> |
78 |
| - |
79 |
| - {% block stylesheets %} |
80 |
| - <link rel="stylesheet" href="{{ asset('styles/core.css?ver=1.4', 'website-2021') }}" media="screen"/> |
81 |
| - |
82 |
| - <!-- |
83 |
| - CSS Mustard Cut |
84 |
| - Print (Edge doesn't apply to print otherwise) |
85 |
| - Edge, Chrome 39+, Opera 26+, Safari 9+, iOS 9+, Android ~5+, Android UCBrowser ~11.8+ |
86 |
| - FF 47+ |
87 |
| - --> |
88 |
| - <link rel="stylesheet" id="advanced-stylesheet" |
89 |
| - href="{{ asset('styles/advanced.css?ver=1.4', 'website-2021') }}" media=" |
90 |
| - only print, |
91 |
| - only all and (pointer: fine), only all and (pointer: coarse), only all and (pointer: none), |
92 |
| - only all and (min--moz-device-pixel-ratio:0) and (display-mode:browser), (min--moz-device-pixel-ratio:0) and (display-mode:fullscreen) |
93 |
| - "> |
94 |
| - <link rel="stylesheet" href="{{ asset('styles/print.css', 'website-2021') }}" media="print"/> |
95 |
| - {% endblock stylesheets %} |
96 |
| - |
97 |
| - {% block javascripts %} |
98 |
| - <script src="{{ asset('js/libraries/fontfaceobserver.js', 'website-2021') }}"></script> |
99 |
| - |
100 |
| - <script> |
101 |
| - var myFont = new FontFaceObserver('Noto Sans'); |
102 | 75 |
|
103 |
| - Promise.all([myFont.load()]).then(function () { |
104 |
| - document.documentElement.className += " fonts-loaded"; |
105 |
| - }); |
| 76 | + {% block stylesheets %}{% endblock stylesheets %} |
106 | 77 |
|
107 |
| - (function () { |
108 |
| - var linkEl = document.getElementById('advanced-stylesheet'); |
109 |
| - if (window.matchMedia && window.matchMedia(linkEl.media).matches) { |
110 |
| - var script = document.createElement('script'); |
111 |
| - script.src = '{{ asset('js/main.js?ver=1.4', 'website-2021') }}'; |
112 |
| - script.defer = true; |
113 |
| - document.querySelector('head').appendChild(script); |
114 |
| - (function (H) { |
115 |
| - H.className = H.className.replace(/\bno-js\b/, 'js') |
116 |
| - })(document.documentElement); |
117 |
| - } |
118 |
| - })(); |
119 |
| - </script> |
120 |
| - {% endblock javascripts %} |
| 78 | + {% block javascripts %}{% endblock javascripts %} |
121 | 79 |
|
122 | 80 | {% if page.feeds is defined %}
|
123 | 81 | {% for feed in page.feeds %}
|
|
0 commit comments