From 201a860a1a2910340287d5d29faf20c7613b9341 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Tue, 6 Feb 2018 01:35:31 -0700 Subject: [PATCH] split head partial - split head partial into head-meta and head-scripts - consolidate gtags script --- src/partials/head-meta.hbs | 1 + src/partials/head-scripts.hbs | 6 ++++++ src/partials/head.hbs | 11 ++--------- 3 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 src/partials/head-meta.hbs create mode 100644 src/partials/head-scripts.hbs diff --git a/src/partials/head-meta.hbs b/src/partials/head-meta.hbs new file mode 100644 index 0000000..541516c --- /dev/null +++ b/src/partials/head-meta.hbs @@ -0,0 +1 @@ +{{! Add additional meta tags here}} diff --git a/src/partials/head-scripts.hbs b/src/partials/head-scripts.hbs new file mode 100644 index 0000000..9e7c6ce --- /dev/null +++ b/src/partials/head-scripts.hbs @@ -0,0 +1,6 @@ +{{#if site.keys.googleAnalytics}} +{{#with site.keys.googleAnalytics}} + + +{{/with}} +{{/if}} diff --git a/src/partials/head.hbs b/src/partials/head.hbs index e64c140..b4ee621 100644 --- a/src/partials/head.hbs +++ b/src/partials/head.hbs @@ -1,9 +1,2 @@ -{{#if site.keys.googleAnalytics}} - - -{{/if}} +{{> head-meta}} +{{> head-scripts}} -- 2.11.0