diff options
| author | czaks <marcin@6irc.net> | 2014-02-23 17:58:16 +0100 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2014-02-23 17:58:16 +0100 |
| commit | 63b9c4db5ffb7a493b5b081ef634d8b4f3a7b5ca (patch) | |
| tree | d7a0edd2b801764016763d734971e798da3117ce /templates | |
| parent | 2a546e5b2d1b293bc4d53d510a35d8751aa7607d (diff) | |
local-time.js now supports custom time formats. idea by copypaste
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/main.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/main.js b/templates/main.js index 54018e37..7796565c 100644 --- a/templates/main.js +++ b/templates/main.js @@ -288,10 +288,12 @@ function ready() { } } -onready(init); - {% endraw %} +var post_date = "{{ config.post_date }}"; + +onready(init); + {% if config.google_analytics %}{% raw %} var _gaq = _gaq || [];_gaq.push(['_setAccount', '{% endraw %}{{ config.google_analytics }}{% raw %}']);{% endraw %}{% if config.google_analytics_domain %}{% raw %}_gaq.push(['_setDomainName', '{% endraw %}{{ config.google_analytics_domain }}{% raw %}']){% endraw %}{% endif %}{% if not config.google_analytics_domain %}{% raw %}_gaq.push(['_setDomainName', 'none']){% endraw %}{% endif %}{% raw %};_gaq.push(['_trackPageview']);(function() {var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);})();{% endraw %}{% endif %} |
