mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
added GoSquared support
GoSquared(analytics) support added in default themes and documentation (in French and English)
This commit is contained in:
parent
70fd137ced
commit
44cadf7c1f
5 changed files with 33 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ Pelican currently supports:
|
||||||
* Atom/RSS feeds
|
* Atom/RSS feeds
|
||||||
* Code syntax highlighting
|
* Code syntax highlighting
|
||||||
* Import from WordPress, Dotclear, or RSS feeds
|
* Import from WordPress, Dotclear, or RSS feeds
|
||||||
* Integration with external tools: Twitter, Google Analytics, etc. (optional)
|
* Integration with external tools: Twitter, Google Analytics, GoSquared, etc. (optional)
|
||||||
|
|
||||||
Have a look at `the documentation <http://pelican.notmyidea.org/en/latest/>`_ for
|
Have a look at `the documentation <http://pelican.notmyidea.org/en/latest/>`_ for
|
||||||
more information.
|
more information.
|
||||||
|
|
|
||||||
|
|
@ -99,6 +99,9 @@ GITHUB_URL :
|
||||||
GOOGLE_ANALYTICS :
|
GOOGLE_ANALYTICS :
|
||||||
'UA-XXXX-YYYY' pour activer Google analytics ;
|
'UA-XXXX-YYYY' pour activer Google analytics ;
|
||||||
|
|
||||||
|
GOSQUARED_SITENAME :
|
||||||
|
'XXX-YYYYYY-X' pour activer GoSquared ;
|
||||||
|
|
||||||
JINJA_EXTENSIONS :
|
JINJA_EXTENSIONS :
|
||||||
Liste d'extension Jinja2 que vous souhaitez utiliser ;
|
Liste d'extension Jinja2 que vous souhaitez utiliser ;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -398,6 +398,7 @@ Setting name What does it do ?
|
||||||
`GITHUB_URL` Your GitHub URL (if you have one). It will then
|
`GITHUB_URL` Your GitHub URL (if you have one). It will then
|
||||||
use this information to create a GitHub ribbon.
|
use this information to create a GitHub ribbon.
|
||||||
`GOOGLE_ANALYTICS` 'UA-XXXX-YYYY' to activate Google Analytics.
|
`GOOGLE_ANALYTICS` 'UA-XXXX-YYYY' to activate Google Analytics.
|
||||||
|
`GOSQUARED_SITENAME` 'XXX-YYYYYY-X' to activate GoSquared.
|
||||||
`MENUITEMS` A list of tuples (Title, URL) for additional menu
|
`MENUITEMS` A list of tuples (Title, URL) for additional menu
|
||||||
items to appear at the beginning of the main menu.
|
items to appear at the beginning of the main menu.
|
||||||
`PIWIK_URL` URL to your Piwik server - without 'http://' at the
|
`PIWIK_URL` URL to your Piwik server - without 'http://' at the
|
||||||
|
|
|
||||||
14
pelican/themes/notmyidea/templates/gosquared.html
Normal file
14
pelican/themes/notmyidea/templates/gosquared.html
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
{% if GOSQUARED_SITENAME %}
|
||||||
|
<script type="text/javascript">
|
||||||
|
var GoSquared={};
|
||||||
|
GoSquared.acct = "{{ GOSQUARED_SITENAME }}";
|
||||||
|
(function(w){
|
||||||
|
function gs(){
|
||||||
|
w._gstc_lt=+(new Date); var d=document;
|
||||||
|
var g = d.createElement("script"); g.type = "text/javascript"; g.async = true; g.src = "//d1l6p2sc9645hc.cloudfront.net/tracker.js";
|
||||||
|
var s = d.getElementsByTagName("script")[0]; s.parentNode.insertBefore(g, s);
|
||||||
|
}
|
||||||
|
w.addEventListener?w.addEventListener("load",gs,false):w.attachEvent("onload",gs);
|
||||||
|
})(window);
|
||||||
|
</script>
|
||||||
|
{% endif %}
|
||||||
14
pelican/themes/simple/templates/gosquared.html
Normal file
14
pelican/themes/simple/templates/gosquared.html
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
{% if GOSQUARED_SITENAME %}
|
||||||
|
<script type="text/javascript">
|
||||||
|
var GoSquared={};
|
||||||
|
GoSquared.acct = "{{ GOSQUARED_SITENAME }}";
|
||||||
|
(function(w){
|
||||||
|
function gs(){
|
||||||
|
w._gstc_lt=+(new Date); var d=document;
|
||||||
|
var g = d.createElement("script"); g.type = "text/javascript"; g.async = true; g.src = "//d1l6p2sc9645hc.cloudfront.net/tracker.js";
|
||||||
|
var s = d.getElementsByTagName("script")[0]; s.parentNode.insertBefore(g, s);
|
||||||
|
}
|
||||||
|
w.addEventListener?w.addEventListener("load",gs,false):w.attachEvent("onload",gs);
|
||||||
|
})(window);
|
||||||
|
</script>
|
||||||
|
{% endif %}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue