aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2018-02-18 06:23:01 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2018-02-18 06:23:01 +0300
commit849bf352c9092746d38a9966c7f1da0cdcf347a5 (patch)
treed69c93a91833e707f6523c05b59c9faf102fbab0
parent_layouts: sidebar.html -> default.html (diff)
downloadjekyll-theme-849bf352c9092746d38a9966c7f1da0cdcf347a5.tar.gz
jekyll-theme-849bf352c9092746d38a9966c7f1da0cdcf347a5.zip
don't zero-pad day number in dates
Diffstat (limited to '')
-rw-r--r--_includes/common/footer.html2
-rw-r--r--_includes/common/sidebar.html2
-rw-r--r--_layouts/post.html2
-rw-r--r--index.html2
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 @@
</div>
<div style="display: table-row;">
<div style="display: table-cell;">
- <div class="text-center text-muted"><small>This version of the page was generated on {{ site.time | date_to_long_string }}.</small></div>
+ <div class="text-center text-muted"><small>This version of the page was generated on {{ site.time | date: '%-d %B %Y' }}.</small></div>
</div>
</div>
</div>
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 @@
<div class="list-group wide-enough">
{% for post in site.posts limit: 5 %}
<a class="list-group-item" href="{{ site.baseurl }}{{ post.url }}">
- <span class="badge"><span class="glyphicon glyphicon-time"></span>&nbsp;{{ post.date | date_to_string }}</span>
+ <span class="badge"><span class="glyphicon glyphicon-time"></span>&nbsp;{{ post.date | date: '%-d %b %Y' }}</span>
<span class="glyphicon glyphicon-file"></span>&nbsp;{{ post.title }}
</a>
{% 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 @@
<div class="col-md-8">
<h1>{{ page.title }}</h1>
<p class="text-muted">
- <span class="glyphicon glyphicon-time"></span>&nbsp;Posted on {{ page.date | date_to_long_string }}
+ <span class="glyphicon glyphicon-time"></span>&nbsp;Posted on {{ page.date | date: '%-d %B %Y' }}
{%- if page.category %} in <span class="glyphicon glyphicon-folder-open"></span>&nbsp;<a class="category" href="{{ site.baseurl }}/{{ page.category | slugify: 'pretty' }}/">{{ page.category }}</a>{% endif %}
</p>
{{ 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 %}
<h2><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h2>
<p class="text-muted">
- <span class="glyphicon glyphicon-time"></span>&nbsp;Posted on {{ post.date | date_to_long_string }}
+ <span class="glyphicon glyphicon-time"></span>&nbsp;Posted on {{ post.date | date: '%-d %B %Y' }}
{%- if post.category %} in <span class="glyphicon glyphicon-folder-open"></span>&nbsp;<a class="category" href="{{ site.baseurl }}/{{ post.category | slugify: 'pretty' }}/">{{ post.category }}</a>{% endif %}
</p>
{{ post.excerpt | markdownify }}