Web/main/_layouts/blog.html
Ell 2f7f1d8192
All checks were successful
Web/pipeline/head This commit looks good
display mature content info per post
2021-12-01 18:18:47 +01:00

40 lines
1.2 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>