From 849bf352c9092746d38a9966c7f1da0cdcf347a5 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 18 Feb 2018 06:23:01 +0300 Subject: don't zero-pad day number in dates --- _includes/common/footer.html | 2 +- _includes/common/sidebar.html | 2 +- _layouts/post.html | 2 +- index.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_includes/common/footer.html b/_includes/common/footer.html index c5c99f4..c1d80e2 100644 --- a/_includes/common/footer.html +++ b/_includes/common/footer.html @@ -11,7 +11,7 @@
-
This version of the page was generated on {{ site.time | date_to_long_string }}.
+
This version of the page was generated on {{ site.time | date: '%-d %B %Y' }}.
diff --git a/_includes/common/sidebar.html b/_includes/common/sidebar.html index dcc79e2..76cced0 100644 --- a/_includes/common/sidebar.html +++ b/_includes/common/sidebar.html @@ -15,7 +15,7 @@
{% for post in site.posts limit: 5 %} -  {{ post.date | date_to_string }} +  {{ post.date | date: '%-d %b %Y' }}  {{ post.title }} {% endfor %} diff --git a/_layouts/post.html b/_layouts/post.html index 27c69f4..83f11b7 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -3,7 +3,7 @@

{{ page.title }}

-  Posted on {{ page.date | date_to_long_string }} +  Posted on {{ page.date | date: '%-d %B %Y' }} {%- if page.category %} in  {{ page.category }}{% endif %}

{{ content }} diff --git a/index.html b/index.html index e498c30..6308849 100644 --- a/index.html +++ b/index.html @@ -13,7 +13,7 @@ root_page: true {% for post in paginator.posts %}

{{ post.title }}

-  Posted on {{ post.date | date_to_long_string }} +  Posted on {{ post.date | date: '%-d %B %Y' }} {%- if post.category %} in  {{ post.category }}{% endif %}

{{ post.excerpt | markdownify }} -- cgit v1.2.3