From f25d8c008041bbc6a008fab92915ca0073941ff0 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 19 Jul 2013 14:08:16 -0700 Subject: [PATCH] hacky way of not showing ads or analytics in local dev --- _includes/footer.html | 32 +++++++++++++++++--------------- _includes/header.html | 22 ++++++++++++---------- _layouts/default.html | 4 +++- 3 files changed, 32 insertions(+), 26 deletions(-) diff --git a/_includes/footer.html b/_includes/footer.html index 7c3bb56396..065308c8c3 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -9,18 +9,20 @@ - - +{% unless site.port != "9001" %} + + +{% endunless %} diff --git a/_includes/header.html b/_includes/header.html index 35c2df0845..cd59fcd543 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -33,13 +33,15 @@ - +{% unless site.port != "9001" %} + +{% endunless %} diff --git a/_layouts/default.html b/_layouts/default.html index 30a261ce86..ede47203a1 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -15,7 +15,9 @@

{{ page.title }}

{{ page.lead }}

- {% include ads.html %} + {% unless site.port != "9001" %} + {% include ads.html %} + {% endunless %}