From 51eb8a3ea5dd4e1131b82b369572fde9cec50650 Mon Sep 17 00:00:00 2001 From: John O'Nolan Date: Sun, 20 Oct 2019 15:51:00 +0700 Subject: [PATCH] Add members support Closes #2 --- partials/subscribe-form.hbs | 19 +++++++++++++++++++ post.hbs | 18 ++++++++---------- 2 files changed, 27 insertions(+), 10 deletions(-) create mode 100644 partials/subscribe-form.hbs diff --git a/partials/subscribe-form.hbs b/partials/subscribe-form.hbs new file mode 100644 index 00000000..dc3f8bd3 --- /dev/null +++ b/partials/subscribe-form.hbs @@ -0,0 +1,19 @@ +
+ + +
+
+ + +
+
+ Great! Check your inbox and click the link to confirm your subscription. +
+
+ Please enter a valid email address! +
+
+
\ No newline at end of file diff --git a/post.hbs b/post.hbs index 8043c213..989f81e2 100644 --- a/post.hbs +++ b/post.hbs @@ -22,20 +22,18 @@ {{!-- Email subscribe form at the bottom of the page --}} - {{#if @labs.subscribers}} -
- -

Get the latest posts delivered right to your inbox

- {{subscribe_form placeholder="youremail@example.com"}} -
+ {{#if @labs.members}} + {{> subscribe-form}} {{/if}}