From 86374a5c39999cacf8a0d9dd90f1e0d359a1739b Mon Sep 17 00:00:00 2001 From: Sahat Yalkabov Date: Sun, 11 May 2014 03:48:19 -0400 Subject: [PATCH] Cleaned up code in layout.jade --- views/layout.jade | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/views/layout.jade b/views/layout.jade index 61769a96025..5710e4a1c54 100644 --- a/views/layout.jade +++ b/views/layout.jade @@ -9,21 +9,13 @@ html meta(name='author', content='') title #{title} | Hackathon Starter != css('styles') - != js('application') body - #wrap - include partials/navigation - .container - include partials/flash - block content - include partials/footer - script. - var _gaq = _gaq || []; - _gaq.push(['_setAccount', 'UA-XXXXX-X']); - _gaq.push(['_trackPageview']); + include partials/navigation - (function() { - var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; - ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; - var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); - })(); + .container + include partials/flash + block content + + include partials/footer + + != js('application')