Skip to content

Commit

Permalink
make work for staging as well
Browse files Browse the repository at this point in the history
  • Loading branch information
aegaas committed May 24, 2016
1 parent e57ff76 commit cd8cde2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions app.staging.coffee
Expand Up @@ -103,6 +103,7 @@ module.exports =

locals:
env: 'staging'
timestamp: Math.round(new Date().getTime()/1000)
_: require 'lodash'
moment: require 'moment'
helpers:
Expand Down
5 changes: 2 additions & 3 deletions views/layouts/_general.jade
Expand Up @@ -20,8 +20,7 @@ html(lang='en')
title= data.meta.opengraph.title
if env == 'dev'
!= css('/')

if env == 'prod'
else
link(rel='stylesheet', href="/css/app.css?v=#{timestamp}")


Expand All @@ -36,7 +35,7 @@ html(lang='en')
include ../includes/_footer
if env == 'dev'
!= js('/')
if env == 'prod'
else
script(src="/js/app.js?v=#{timestamp}")

block trackers
9 changes: 5 additions & 4 deletions views/layouts/_single.jade
Expand Up @@ -35,8 +35,7 @@ html(lang='en')
title= post.title
if env == 'dev'
!= css('/')

if env == 'prod'
else
link(rel='stylesheet', href="/css/app.css?v=#{timestamp}")

link(rel='stylesheet', href='/css/prism.css')
Expand Down Expand Up @@ -105,10 +104,12 @@ html(lang='en')

if env == 'dev'
!= js('/')

else
script(src="/js/app.js?v=#{timestamp}")

//- trackers
if env == 'prod'
script(src="/js/app.js?v=#{timestamp}")

+tracking-pixel('nth41')
include ../includes/_facebook_tracking
img(src="//trc.taboola.com/ironhorseinteractive-intel/log/3/mark?marking-type=visitor_android&item-url=https://androidhub.intel.com#{post._url}", width="0", height="0")
Expand Down

0 comments on commit cd8cde2

Please sign in to comment.