mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #373 from asselinpaul/master
Added GoSquared support
This commit is contained in:
commit
f7fcbe7dc9
4 changed files with 18 additions and 0 deletions
|
|
@ -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 ;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -404,6 +404,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
|
||||||
|
|
|
||||||
BIN
pelican/themes/notmyidea/templates/.DS_Store
vendored
Normal file
BIN
pelican/themes/notmyidea/templates/.DS_Store
vendored
Normal file
Binary file not shown.
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