Add subscribe form to second edition index page

This commit is contained in:
Philipp Oppermann
2018-03-07 11:25:39 +01:00
parent f24ba8b799
commit 1c4e6ecac6
2 changed files with 44 additions and 0 deletions

View File

@@ -30,6 +30,24 @@
{{ macros::post_link(page=posts.2) }}
</div>
<div class="posts subscribe">
<h2 class="post-title">Subscribe</h2>
Receive notifications about new posts and other major changes.
<form
action="https://buttondown.email/api/emails/embed-subscribe/phil-opp"
method="post"
target="popupwindow"
onsubmit="window.open('https://buttondown.email/phil-opp', 'popupwindow')"
class="embeddable-buttondown-form subscribe"
>
<div class="subscribe-fields">
<input type="email" name="email" id="bd-email" placeholder="Enter your email">
<input type="hidden" value="1" name="embed"/>
<input type="submit" value="Subscribe" />
</div>
</form>
</div>
<aside id="recent-updates">
<h2>Recent Updates</h2>
{% include "recent-updates.html" %}