Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated to use new site.yml structure

  • Loading branch information...
commit 9cbbcf8c5f6de6d5bbfb5ff55fe6fd66965e129a 1 parent 6f1eeb5
@benschwarz authored
Showing with 8 additions and 4 deletions.
  1. +7 −3 site.yml
  2. +1 −1  templates/shared/analytics.mustache
View
10 site.yml
@@ -1,3 +1,7 @@
-:site:
- :name: Bonsai
- :url: http://www.tinytree.info
+# The key value pairs found below are available within the templates.
+# {{site_name}}, {{url}}, {{copyright}} and {{analytics_code}}
+
+:site_name: Bonsai
+:url: http://www.tinytree.info
+:copyright: 2010
+:analytics_code: UA-12260463-1
View
2  templates/shared/analytics.mustache
@@ -4,6 +4,6 @@ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.
</script>
<script type="text/javascript">
try {
-var pageTracker = _gat._getTracker("UA-12260463-1");
+var pageTracker = _gat._getTracker("{{analytics_code}}");
pageTracker._trackPageview();
} catch(err) {}</script>
Please sign in to comment.
Something went wrong with that request. Please try again.