Web/main/_layouts/blog.html

63 lines
2.3 KiB
HTML

---
layout: default
nav: nav/blognav.html
---
{% if page.book %}
<link rel="stylesheet" href="/style/book.css">
{% else %}
<script>
let style = dark ? "monokai" : "friendly";
addStyle(`https://cdn.jsdelivr.net/gh/richleland/pygments-css@master/${style}.css`);
</script>
{% endif %}
<div class="list-display rounded">
<div class="blog-isolated">
<h1>{{ page.title }}</h1>
{% if page.archived %}
<p>🧓 <em>This post has been archived.</em></p>
{% endif %}
{% if page.mature %}
<p>⚠️ <em>This post contains mature content.</em></p>
{% endif %}
{% if page.reedsy %}
<p>📘 <em>This story was inspired by a Reedsy Prompt and submitted to their competition. As such, it has also been published on <a href="{{ page.reedsy }}">their website</a>.</em></p>
{% endif %}
<div class="post-content">
{{ content }}
</div>
<span class="text-muted project-status blog-isolated-status">{{ page.date | date_to_string }}</span>
{% if page.discuss %}
🧵 <a href="{{ page.discuss }}" class="blog-discuss">Discuss this post</a>
{% endif %}
</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>