Permalink
Browse files

Cleanup

  • Loading branch information...
JedWatson committed Nov 18, 2013
1 parent f5c0413 commit e6a9a9645c99ebfcbacb3f7a5e526114a93f26c2
Showing with 18 additions and 14 deletions.
  1. +1 −0 .gitignore
  2. +14 −14 templates/layouts/default.jade
  3. +3 −0 web.js
View
@@ -16,4 +16,5 @@ results
npm-debug.log
node_modules
+.env
ACCOUNTS.md
@@ -10,7 +10,7 @@ html
meta(charset="utf-8")
meta(name="viewport", content="initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width")
- title= title || 'Keystone Demo'
+ title= title || 'SydJS'
link(rel="shortcut icon", href="/favicon.ico", type="image/x-icon")
link(href="/styles/site.min.css", rel="stylesheet")
@@ -42,17 +42,17 @@ html
#sydjs-footer: .container
p Powered by <a href='http://keystonejs.com'>KeystoneJS</a>.
- //- scripts
- script(src='/js/lib/jquery/jquery-1.10.2.min.js')
-
- block page-js
-
- if env == 'production' && ga_property && ga_domain
- script.
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+ //- scripts
+ script(src='/js/lib/jquery/jquery-1.10.2.min.js')
+
+ block page-js
+
+ if env == 'production' && ga_property && ga_domain
+ script.
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
- ga('create', '#{ga_property}', '#{ga_domain}');
- ga('send', 'pageview');
+ ga('create', '#{ga_property}', '#{ga_domain}');
+ ga('send', 'pageview');
View
3 web.js
@@ -28,6 +28,9 @@ keystone.init({
'user model': 'User',
'cookie secret': process.env.COOKIE_SECRET || 'sydjs',
+ 'google api key': process.env.GOOGLE_BROWSER_KEY,
+ 'google server api key': process.env.GOOGLE_SERVER_KEY,
+
'ga property': process.env.GA_PROPERTY,
'ga domain': process.env.GA_DOMAIN

0 comments on commit e6a9a96

Please sign in to comment.