From f08c70ca67cadbe35863f4c94b7be25ac5541f14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenzo=20Dellac=C3=A0?= Date: Wed, 4 Nov 2020 23:38:08 +0100 Subject: [PATCH] Move vanta-js to separate partial to avoid duplication --- home.hbs | 25 +++---------------------- index.hbs | 21 +-------------------- partials/vanta-js.hbs | 20 ++++++++++++++++++++ tag.hbs | 21 +-------------------- 4 files changed, 25 insertions(+), 62 deletions(-) create mode 100644 partials/vanta-js.hbs diff --git a/home.hbs b/home.hbs index 163e032..71c2119 100644 --- a/home.hbs +++ b/home.hbs @@ -1,8 +1,8 @@ {{!< default}}
-

{{@site.title}}

- +

{{@site.title}}

+
@@ -20,23 +20,4 @@ {{!-- Vanta.JS Scripts to make the background cool, but disabled on mobile --}} - +{{> "vanta-js"}} diff --git a/index.hbs b/index.hbs index 5af5eec..71c2119 100755 --- a/index.hbs +++ b/index.hbs @@ -20,23 +20,4 @@ {{!-- Vanta.JS Scripts to make the background cool, but disabled on mobile --}} - +{{> "vanta-js"}} diff --git a/partials/vanta-js.hbs b/partials/vanta-js.hbs new file mode 100644 index 0000000..8346cfc --- /dev/null +++ b/partials/vanta-js.hbs @@ -0,0 +1,20 @@ + diff --git a/tag.hbs b/tag.hbs index e04fe80..723c91b 100644 --- a/tag.hbs +++ b/tag.hbs @@ -31,23 +31,4 @@ {{!-- Vanta.JS Scripts to make the background cool, but disabled on mobile --}} - +{{> "vanta-js"}}