From 102c3611e01ae586e36b5b2e5b973822c53c43a8 Mon Sep 17 00:00:00 2001 From: Robert Austin Date: Sun, 9 Dec 2018 20:56:24 +1000 Subject: [PATCH] fix google analytics if else condition --- _config.yml | 2 +- _includes/google-analytics.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_config.yml b/_config.yml index d4df964..eff5729 100755 --- a/_config.yml +++ b/_config.yml @@ -28,4 +28,4 @@ defaults: sass: style: compact # possible values: nested expanded compact compressed -google_analytics_id: "" \ No newline at end of file +google_analytics_id: null \ No newline at end of file diff --git a/_includes/google-analytics.html b/_includes/google-analytics.html index 2721251..add9fff 100644 --- a/_includes/google-analytics.html +++ b/_includes/google-analytics.html @@ -1,4 +1,4 @@ -{{ if site.google_analytics_id }} +{% if site.google_analytics_id %} -{{ end }} \ No newline at end of file +{% endif %} \ No newline at end of file