Web/_layouts/blog.html

58 lines
1.8 KiB
HTML
Raw Permalink Normal View History

2024-06-14 17:49:53 +02:00
---
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>
2024-07-20 23:50:02 +02:00
let style = dark ? "mocha" : "latte";
2024-06-14 17:49:53 +02:00
$("head").append($("<link/>", {
rel: "stylesheet",
2024-07-20 23:50:02 +02:00
href: `https://cdn.jsdelivr.net/gh/catppuccin/python@gh-pages/pygments/catppuccin-${style}.css`
2024-06-14 17:49:53 +02:00
}));
</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>