feat: old posts banners

This commit is contained in:
Cory Dransfeldt 2024-01-10 14:08:10 -08:00
parent 6e0f47f18f
commit 7d9d1ca3d2
No known key found for this signature in database
7 changed files with 42 additions and 13 deletions

View file

@ -0,0 +1,12 @@
{% assign isOldPost = date | oldPost %}
{% if isOldPost %}
{% capture css %}
{% render "../../assets/styles/widgets/banner-old-post.css" %}
{% endcapture %}
<style>
{{ css | cssmin }}
</style>
<div class="banner__old-post">
<p>{% tablericon "clock-x" "Old post" %} This post is over 3 years old. I've probably changed my mind since then and this <em>could</em> be out of date.</p>
</div>
{% endif %}