Mercurial > hg > Blog
annotate themes/tuxlite_tbs/templates/analytics.html @ 46:ea8a767f5111
fiddle with L10N: generate the proper <html lang=""> element into the article page,
depending on a page's defined locale with fallback to the default locale
| author | Dirk Olmes <dirk@xanthippe.ping.de> | 
|---|---|
| date | Thu, 02 Oct 2014 04:19:34 +0200 | 
| parents | 6e2bcaecf3ec | 
| children | 
| rev | line source | 
|---|---|
| 
9
 
6e2bcaecf3ec
include the theme locally to avoid any dependency on the pelican-themes git repo. Those guys don't incorporate the fixes as quickly as I need plus, I already changed the theme to incorporate the juvia comments.
 
Dirk Olmes <dirk@xanthippe.ping.de> 
parents:  
diff
changeset
 | 
1 {% if GOOGLE_ANALYTICS %} | 
| 
 
6e2bcaecf3ec
include the theme locally to avoid any dependency on the pelican-themes git repo. Those guys don't incorporate the fixes as quickly as I need plus, I already changed the theme to incorporate the juvia comments.
 
Dirk Olmes <dirk@xanthippe.ping.de> 
parents:  
diff
changeset
 | 
2 <script>var _gaq=[['_setAccount','{{GOOGLE_ANALYTICS}}'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script'))</script> | 
| 
 
6e2bcaecf3ec
include the theme locally to avoid any dependency on the pelican-themes git repo. Those guys don't incorporate the fixes as quickly as I need plus, I already changed the theme to incorporate the juvia comments.
 
Dirk Olmes <dirk@xanthippe.ping.de> 
parents:  
diff
changeset
 | 
3 {% endif %} | 
