|
1 | 1 | <!-- Elements added to main will be displayed on all pages --> |
2 | 2 | {% extends "base.html" %} |
3 | 3 |
|
4 | | -<!-- Google Tag Manager --> |
5 | | -{% block libs %} |
6 | | -<script> |
7 | | -var gtmId = 'GTM-KXPH36V'; |
8 | | -if (typeof window !== 'undefined' && window.location.href.includes('127.0.0.1')) { |
9 | | - gtmId = 'GTM-XXX' |
10 | | -} |
11 | | -(function(w,d,s,l,i){ |
12 | | - w[l]=w[l]||[];w[l].push({'gtm.start': |
13 | | - new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], |
14 | | - j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= |
15 | | - 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); |
16 | | - })(window,document,'script','dataLayer', gtmId); |
17 | | -</script> |
| 4 | +<!-- Google Tag Manager and Ads --> |
| 5 | +{% block extrahead %} |
| 6 | + {{ super() }} |
| 7 | + <script> |
| 8 | + var gtmId = 'GTM-KXPH36V'; |
| 9 | + if (typeof window !== 'undefined' && window.location.href.includes('127.0.0.1')) { |
| 10 | + gtmId = 'GTM-XXX' |
| 11 | + } |
| 12 | + (function(w,d,s,l,i){ |
| 13 | + w[l]=w[l]||[];w[l].push({'gtm.start': |
| 14 | + new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], |
| 15 | + j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= |
| 16 | + 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); |
| 17 | + })(window,document,'script','dataLayer', gtmId); |
| 18 | + </script> |
18 | 19 | <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> |
19 | | -<script> |
20 | | - (adsbygoogle = window.adsbygoogle || []).push({ |
21 | | - google_ad_client: "ca-pub-9447404270680650", |
22 | | - enable_page_level_ads: true |
23 | | - }); |
24 | | -</script> |
25 | | -<script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script> |
26 | | -<script> |
27 | | -window.googletag = window.googletag || { cmd: [] }; |
28 | | -</script> |
| 20 | + <script> |
| 21 | + (adsbygoogle = window.adsbygoogle || []).push({ |
| 22 | + google_ad_client: "ca-pub-9447404270680650", |
| 23 | + enable_page_level_ads: true |
| 24 | + }); |
| 25 | + </script> |
| 26 | + <script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script> |
| 27 | + <script> |
| 28 | + window.googletag = window.googletag || { cmd: [] }; |
| 29 | + </script> |
29 | 30 | {% endblock %} |
30 | 31 |
|
31 | 32 | <!-- Announcement bar --> |
|
34 | 35 | <a href="https://www.libretro.com/index.php/retroarch-1-21-0-release/"><strong>New version released! Read the blog post now!</strong></a> |
35 | 36 | {% endblock %} |
36 | 37 |
|
37 | | -<!-- More minimal footer --> |
38 | | -{% block footer %} |
39 | | -<footer class="md-footer"> |
40 | | - <div class="md-footer-meta md-typeset"> |
41 | | - <div class="md-footer-meta__inner md-grid"> |
42 | | - <!-- Copyright and theme information --> |
43 | | - <div class="md-footer-copyright"> |
44 | | - {% if config.copyright %} |
45 | | - <div class="md-footer-copyright__highlight"> |
46 | | - {{ config.copyright }} |
47 | | - </div> |
48 | | - {% endif %} |
49 | | - powered by |
50 | | - <a href="https://www.mkdocs.org" title="MkDocs">MkDocs</a> |
51 | | - and |
52 | | - <a href="https://squidfunk.github.io/mkdocs-material/" |
53 | | - title="Material for MkDocs"> |
54 | | - Material for MkDocs</a> |
55 | | - </div> |
56 | | - {% block social %} |
57 | | - {% include "partials/social.html" %} |
58 | | - {% endblock %} |
59 | | - </div> |
60 | | - </div> |
61 | | -</footer> |
62 | | -{% endblock %} |
0 commit comments