summaryrefslogtreecommitdiff
path: root/_includes/recent_posts.liquid
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2024-05-07 11:45:46 -0600
committerHombreLaser <sebastian-440@live.com>2024-05-07 11:45:46 -0600
commita4c0692f8dbab80cf5c0b5644ec050322040c4e3 (patch)
tree3ea2f9dc891a13bbcf8b8980c5bf6f2ebb0b9dc2 /_includes/recent_posts.liquid
parentacc3c3caf7029f92a2b146c29a510181c1b42a65 (diff)
Add dark theme
Diffstat (limited to '_includes/recent_posts.liquid')
-rw-r--r--_includes/recent_posts.liquid16
1 files changed, 16 insertions, 0 deletions
diff --git a/_includes/recent_posts.liquid b/_includes/recent_posts.liquid
new file mode 100644
index 0000000..c079d30
--- /dev/null
+++ b/_includes/recent_posts.liquid
@@ -0,0 +1,16 @@
+{% if site.posts %}
+<div class="column sidebar mt-3">
+ <div class="column sidebar-element">
+ <span>
+ {% t global.recent_posts %}
+ </span>
+ </div>
+ {% for post in site.posts limit:5 %}
+ <div class="column sidebar-element">
+ <a href="{{ site.baseurl }}{{ post.url }}">
+ {{ post.title }}
+ </a>
+ </div>
+ {% endfor %}
+</div>
+{% endif %}