diff --git a/_data/locale.toml b/_data/locale.toml index dd8ade0..219ac84 100644 --- a/_data/locale.toml +++ b/_data/locale.toml @@ -19,6 +19,11 @@ es = "música" en = "etc" es = "etc" +# blog +[read-more] +en = "read more..." +es = "leer más..." + # 404 [404] en = "404 not found" diff --git a/_layouts/recent_feed.njk b/_layouts/recent_feed.njk new file mode 100644 index 0000000..0787c6a --- /dev/null +++ b/_layouts/recent_feed.njk @@ -0,0 +1,37 @@ +{# + possible variables: + - cycling_tag: collection tag to cycle through + - sidebar: .njk include file as sidebar [optional] +#} + +{% extends "_layouts/base.njk" %} + +{% block content %} + {% if sidebar %} +
+ {% include sidebar %} +
+ {% endif %} +
+
+ {{ content | safe }} +
+ {% for post in collections[cycling_tag] | i18n_filter %} +
+

2025

+

{{ post.data.title }}

+ + {#

Debug: {{ post.date }} -> {{ post.date | date("dd/MM/yyyy") }}

#} + {% if post.data.description %} +

{{ post.data.description }}

+ {% else %} +

{% excerpt post %}

+ {% endif %} + {{ "read-more" | i18n }} + {% if post.data.image %} + {{ post.data.image.alt }} + {% endif %} +
+ {% endfor %} +
+{% endblock content %}