theme/templates/base.html

changeset 144
202ad178f68f
parent 122
08b9a05b3d8d
child 145
66ea6b61242e
equal deleted inserted replaced
143:9e963e155d4c 144:202ad178f68f
33 <link href="{{ FEED_DOMAIN }}/{% if TAG_FEED_ATOM_URL %}{{ TAG_FEED_ATOM_URL|format(tag.slug) }}{% else %}{{ TAG_FEED_ATOM|format(tag.slug) }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Tags Atom Feed" /> 33 <link href="{{ FEED_DOMAIN }}/{% if TAG_FEED_ATOM_URL %}{{ TAG_FEED_ATOM_URL|format(tag.slug) }}{% else %}{{ TAG_FEED_ATOM|format(tag.slug) }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Tags Atom Feed" />
34 {% endif %} 34 {% endif %}
35 {% if TAG_FEED_RSS and tag %} 35 {% if TAG_FEED_RSS and tag %}
36 <link href="{{ FEED_DOMAIN }}/{% if TAG_FEED_RSS_URL %}{{ TAG_FEED_RSS_URL|format(tag.slug) }}{% else %}{{ TAG_FEED_RSS|format(tag.slug) }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Tags RSS Feed" /> 36 <link href="{{ FEED_DOMAIN }}/{% if TAG_FEED_RSS_URL %}{{ TAG_FEED_RSS_URL|format(tag.slug) }}{% else %}{{ TAG_FEED_RSS|format(tag.slug) }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Tags RSS Feed" />
37 {% endif %} 37 {% endif %}
38 {% if PIWIK %} 38 {% if MATOMO_JS %}
39 {{PIWIK}} 39 <script>
40 var _paq = window._paq = window._paq || [];
41 /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
42 _paq.push(['trackPageView']);
43 _paq.push(['enableLinkTracking']);
44 (function() {
45 var u="//matomo.sdfa3.org/";
46 _paq.push(['setTrackerUrl', u+'matomo.php']);
47 _paq.push(['setSiteId', '2']);
48 var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
49 g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
50 })();
51 </script>
40 {% endif %} 52 {% endif %}
41 {% if article %} 53 {% if article %}
42 {% if article.stylesheets %} 54 {% if article.stylesheets %}
43 {% for stylesheet in article.stylesheets %} 55 {% for stylesheet in article.stylesheets %}
44 {{ stylesheet }} 56 {{ stylesheet }}
132 </div> 144 </div>
133 {% endblock %} 145 {% endblock %}
134 </div> 146 </div>
135 {% include 'trademark.html' %} 147 {% include 'trademark.html' %}
136 </div> 148 </div>
137 {% if PIWIK %} 149
138 <noscript> 150 {% if MATOMO_IMG %}
139 <img src="https://piwik.sdfa3.org/matomo.php?idsite=2&amp;rec=1" style="border:0" alt="" /> 151 <img referrerpolicy="no-referrer-when-downgrade" src="https://matomo.sdfa3.org/matomo.php?idsite=2&amp;rec=1" style="border:0" alt="" />
140 </noscript>
141 {% endif %} 152 {% endif %}
142 153
143 </body> 154 </body>
144 155
145 156

mercurial