theme/templates/base.html

changeset 146
11e6db4102f1
parent 144
202ad178f68f
equal deleted inserted replaced
144:202ad178f68f 146:11e6db4102f1
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 MATOMO_JS %} 38 {% if MATOMO_JS%}
39 <script> 39 {{MATOMO_JS}}
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>
52 {% endif %} 40 {% endif %}
53 {% if article %} 41 {% if article %}
54 {% if article.stylesheets %} 42 {% if article.stylesheets %}
55 {% for stylesheet in article.stylesheets %} 43 {% for stylesheet in article.stylesheets %}
56 {{ stylesheet }} 44 {{ stylesheet }}
144 </div> 132 </div>
145 {% endblock %} 133 {% endblock %}
146 </div> 134 </div>
147 {% include 'trademark.html' %} 135 {% include 'trademark.html' %}
148 </div> 136 </div>
149
150 {% if MATOMO_IMG %} 137 {% if MATOMO_IMG %}
151 <img referrerpolicy="no-referrer-when-downgrade" src="https://matomo.sdfa3.org/matomo.php?idsite=2&amp;rec=1" style="border:0" alt="" /> 138 {{MATOMO_IMG}}
152 {% endif %} 139 {% endif %}
153 140
154 </body> 141 </body>
155 142
156 143

mercurial