feat: old posts banners
This commit is contained in:
parent
6e0f47f18f
commit
7d9d1ca3d2
7 changed files with 42 additions and 13 deletions
12
src/_includes/partials/banner-old-post.liquid
Normal file
12
src/_includes/partials/banner-old-post.liquid
Normal 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 %}
|
Reference in a new issue