summaryrefslogtreecommitdiff
path: root/_includes/recent_posts.html
diff options
context:
space:
mode:
authorHombreLaser <buran@silosneeded.com>2024-05-05 19:51:24 -0600
committerHombreLaser <buran@silosneeded.com>2024-05-05 19:51:24 -0600
commit30c268fdabca62c7c4df6e8db7426666fc2be66a (patch)
tree8042bfd5d1ebee1ef492b9f1f8cac0e1c4c22438 /_includes/recent_posts.html
parentbf2c057eece0e777036110526eb488b364dff108 (diff)
Change interface
Diffstat (limited to '_includes/recent_posts.html')
-rw-r--r--_includes/recent_posts.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/_includes/recent_posts.html b/_includes/recent_posts.html
new file mode 100644
index 0000000..c079d30
--- /dev/null
+++ b/_includes/recent_posts.html
@@ -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 %}