added a mailing list subscription link
All checks were successful
Web/pipeline/head This commit looks good

This commit is contained in:
Ell 2022-07-17 15:26:14 +02:00
parent 67e0e74569
commit 17d2972ba9
4 changed files with 36 additions and 11 deletions

View file

@ -9,7 +9,7 @@
<p>
This is my blog, where I post about gaming, programming and life. The featured posts are the ones you'll probably be most interested in, but you can select a different category to see every post.
</p>
<p>📰 You can also subscribe to this blog through the <a href="/feed.xml">Atom Feed</a>.</p>
<p>📫 You can also subscribe to this blog through the <a href="https://ell.lt/lists">mailing list</a> or the <a href="/feed.xml">Atom Feed</a>.</p>
<div id="blog-cats">
{% include tagbtn.html tag="All" %}
{%- assign sorted = site.tags | sort -%}
@ -36,4 +36,4 @@
<em id="no-archived-posts" hidden>There are no archived posts in this category.</em>
</div>
<script src="/scripts/blog.js"></script>
</div>
</div>

View file

@ -23,4 +23,3 @@
{% if next %}
<a class="nav-item nav-link" href="{{ posts[next].url }}">⏭️ Next in {{ tag }}</a>
{% endif %}
<a class="nav-item nav-link" href="/feed.xml">📰 Atom Feed</a>

View file

@ -37,4 +37,26 @@ nav: nav/blognav.html
🧵 <a href="{{ page.discuss }}" class="blog-discuss">Discuss this post</a>
{% endif %}
</div>
</div>
</div>
<div class="alert alert-success mail-alert">
<h3>📫 Subscribe</h3>
<p>If you liked this blog post, you can subscribe to the mailing list to be notified of new posts and occasional special content. I promise not to send too many emails, but you can always unsubscribe easily, too.</p>
<form method="post" action="https://lists.ellpeck.de/subscription/form" class="listmonk-form text-center">
<div>
<input type="hidden" name="nonce">
<p><input type="email" name="email" required placeholder="E-mail"></p>
<p><input type="text" name="name" placeholder="Name (optional)"></p>
<p>
<input id="d3ee1" type="checkbox" name="l" checked value="d3ee16aa-f47a-43bd-a0d6-759d108a5650" />
<label for="d3ee1">📔 Ellpeck's Blog</label>
</p>
<p><input type="submit" value="Subscribe"></p>
</div>
</form>
<p>📰 Alternatively, you can also subscribe to this blog through the <a href="/feed.xml">Atom Feed</a>.</p>
</div>

View file

@ -34,6 +34,14 @@ sup {
background-color: white;
}
.alert {
width: 85%;
display: block;
margin-top: 40px;
margin-left: auto;
margin-right: auto;
}
.project {
margin-top: 50px;
}
@ -179,10 +187,6 @@ sup {
margin-bottom: 10px;
}
.alert {
margin-top: 1rem;
}
#discord-widget {
display: block;
margin: auto;
@ -238,7 +242,6 @@ pre.highlight {
margin-top: 20px;
}
@media(max-width: 1199px) {
.blog-title {
margin-top: 15px;
@ -255,7 +258,8 @@ pre.highlight {
}
.list-display,
.jumbotron {
.jumbotron,
.alert {
width: auto;
padding-left: 20px;
padding-right: 20px;
@ -293,4 +297,4 @@ pre.highlight {
right: 10px;
top: 5px;
}
}
}