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 %} +
+ {% endif %} +{{ post.date | date("dd/MM/yyyy") }}
+ {#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 %} +