mirror of
https://github.com/arsenetar/pelican-red.git
synced 2026-01-23 15:11:38 +00:00
Initial Templates
Adds Initial base template and article templates along with the analytics templates and Disqus comments template. Additional template files created with just extends base to act as reminders to finish.
This commit is contained in:
14
templates/google_analytics.html
Normal file
14
templates/google_analytics.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<!-- Google Analytics -->
|
||||
<script type="text/javascript">
|
||||
var _gaq = _gaq || [];
|
||||
_gaq.push(['_setAccount', '{{ GA_CODE }}']); //account #
|
||||
_gaq.push(['_setDomainName', '{{ GA_DOMAIN }}']); //subdomains of rangertbc.net
|
||||
{% if GA_LINKER == True %}
|
||||
_gaq.push(['_setAllowLinker', true]); // multiple top-level domains true
|
||||
{% endif %}
|
||||
_gaq.push(['_trackPageview']);
|
||||
(function() {
|
||||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
||||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
||||
})();
|
||||
Reference in New Issue
Block a user