Web/main/_layouts/blog.html

80 lines
2.9 KiB
HTML
Raw Normal View History

---
layout: default
nav: nav/blognav.html
---
2023-06-02 13:43:25 +02:00
<style>
html {
scroll-padding-top: 70px;
}
h1 .anchor-heading, h2 .anchor-heading, h3 .anchor-heading, h4 .anchor-heading, h5 .anchor-heading, h6 .anchor-heading {
visibility: hidden;
}
h1:hover .anchor-heading, h2:hover .anchor-heading, h3:hover .anchor-heading, h4:hover .anchor-heading, h5:hover .anchor-heading, h6:hover .anchor-heading {
visibility: visible;
}
</style>
{% if page.book %}
2023-06-02 13:43:25 +02:00
<link rel="stylesheet" href="/style/book.css">
{% else %}
2023-06-02 13:43:25 +02:00
<script>
let style = dark ? "monokai" : "friendly";
2023-08-07 14:04:06 +02:00
$("head").append($("<link/>", {
2023-06-13 17:29:52 +02:00
rel: "stylesheet",
href: `https://cdn.jsdelivr.net/gh/richleland/pygments-css@master/${style}.css`
}));
2023-06-02 13:43:25 +02:00
</script>
{% endif %}
<div class="list-display rounded">
<div class="blog-isolated">
<h1>{{ page.title }}</h1>
{% if page.archived %}
2023-06-02 13:43:25 +02:00
<p>🧓 This post has been archived.</p>
{% endif %}
{% if page.mature %}
2023-06-02 13:43:25 +02:00
<p>⚠️ This post contains mature content.</p>
{% endif %}
{% if page.reedsy %}
2023-06-02 13:43:25 +02:00
<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">
2023-06-02 13:43:25 +02:00
{% include anchor_headings.html html=content anchorBody="#" anchorClass="anchor-heading" %}
</div>
<span class="text-muted project-status blog-isolated-status">{{ page.date | date_to_string }}</span>
{% if page.discuss %}
2023-06-02 13:43:25 +02:00
🧵 <a href="{{ page.discuss }}" class="blog-discuss">Discuss this post</a>
{% endif %}
</div>
2022-07-17 15:26:14 +02:00
</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>
2023-06-02 13:43:25 +02:00
<input id="d3ee1" type="checkbox" name="l" checked value="d3ee16aa-f47a-43bd-a0d6-759d108a5650"/>
2022-07-17 15:26:14 +02:00
<label for="d3ee1">📔 Ellpeck's Blog</label>
</p>
<p><input type="submit" value="Subscribe"></p>
</div>
</form>
2022-11-02 21:28:32 +01:00
<p>📰 Alternatively, you can also subscribe to this blog through the <a href="/feed.xml">Atom feed</a>.</p>
2022-07-17 15:26:14 +02:00
</div>