Web/_layouts/blog.html
Ell 53819e301e
All checks were successful
/ web (push) Successful in 25s
use catppuccin code styling
2024-07-20 23:50:02 +02:00

57 lines
1.8 KiB
HTML

---
layout: default
nav: nav/blognav.html
---
<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 %}
<link rel="stylesheet" href="/style/book.css">
{% else %}
<script>
let style = dark ? "mocha" : "latte";
$("head").append($("<link/>", {
rel: "stylesheet",
href: `https://cdn.jsdelivr.net/gh/catppuccin/python@gh-pages/pygments/catppuccin-${style}.css`
}));
</script>
{% endif %}
<div class="list-display rounded">
<div class="blog-isolated">
<h1>{{ page.title }}</h1>
{% if page.archived %}
<p>🧓 This post has been archived.</p>
{% endif %}
{% if page.mature %}
<p>⚠️ This post contains mature content.</p>
{% endif %}
{% if page.reedsy %}
<p>📘 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>.</p>
{% endif %}
<div class="post-content">
{% 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 %}
🧵 <a href="{{ page.discuss }}" class="blog-discuss">Discuss this post</a>
{% endif %}
</div>
</div>