Added newsletter functionality

This commit is contained in:
2023-08-27 14:55:00 +03:00
parent bbe6c29419
commit f2246b4303
4 changed files with 90 additions and 14 deletions
+15 -1
View File
@@ -10,6 +10,19 @@
⬡
<a href="/contact">Contact</a>
</nav>
<form action="https://buttondown.email/api/emails/embed-subscribe/andwati"
method="post"
target="popupwindow"
onsubmit="window.open('https://buttondown.email/andwati','popupwindow')"
class="embeddable-buttondown-form">
<input type="email"
name="email"
id="bd-email"
placeholder="Enter your email" />
<input type="hidden" value="1" name="embed" />
<input type="hidden" name="tag" value="via-footer" />
<input type="submit" value="Sign up" />
</form>
<p>
© 2022 -
{{ now() | date(format="%Y") }}
@@ -18,4 +31,5 @@
<a href="https://github.com/andwati/andwati.com">Source</a>
⬡
<a href="/rss.xml">Feed</a>
</footer>
</p>
</footer>
+30
View File
@@ -0,0 +1,30 @@
{% extends "index.html" %}
{% block meta %}
<meta name="description" content="{{ section.description }}" />
<meta property="og:site_name" content="andwati.com" />
<meta property="og:locale" content="en-us" />
<meta property="og:url" content="{{ section.permalink }}" />
<meta property="og:title" content="{{ section.title }}" />
<meta property="og:description" content="{{ section.description }}" />
<meta property="og:type" content="profile" />
<meta property="og:image" content="https://andwati.com/self.png" />
<meta property="twitter:card" content="summary" />
<meta property="twitter:site" content="@andwati_" />
<meta property="twitter:title" content="{{ section.title }}" />
<meta property="twitter:description" content="{{ section.description }}" />
<meta property="twitter:image" content="https://andwati.com/self.png" />
{% endblock meta %}
{% block content %}
<main id="content">
<header>
<h1>{{ section.title }}</h1>
</header>
<h1>Thank You</h1>
<p>
It's great to have you on board. Check your email to confirm your subscription.
<br />
Have a nice day!
</p>
</main>
{% include "footer.html" %}
{% endblock content %}