Skip to content

Commit f331584

Browse files
iBugmmistakes
authored andcommittedJan 7, 2020
Use %-d instead of %d (mmistakes#2359)
1 parent e604b47 commit f331584

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎_includes/comment.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h3 class="comment__author" itemprop="author" itemscope itemtype="https://schema
1313
<p class="comment__date">
1414
{% if include.date %}
1515
{% if include.index %}<a href="#comment{{ include.index }}" itemprop="url">{% endif %}
16-
<time datetime="{{ include.date | date_to_xmlschema }}" itemprop="datePublished">{{ include.date | date: "%B %d, %Y at %I:%M %p" }}</time>
16+
<time datetime="{{ include.date | date_to_xmlschema }}" itemprop="datePublished">{{ include.date | date: "%B %-d, %Y at %I:%M %p" }}</time>
1717
{% if include.index %}</a>{% endif %}
1818
{% endif %}
1919
</p>

‎_layouts/single.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ <h4 class="page__meta-title">{{ site.data.ui-text[site.locale].meta_label }}</h4
5252
{% endif %}
5353
{% include page__taxonomy.html %}
5454
{% if page.last_modified_at %}
55-
<p class="page__date"><strong><i class="fas fa-fw fa-calendar-alt" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].date_label | default: "Updated:" }}</strong> <time datetime="{{ page.last_modified_at | date: "%Y-%m-%d" }}">{{ page.last_modified_at | date: "%B %d, %Y" }}</time></p>
55+
<p class="page__date"><strong><i class="fas fa-fw fa-calendar-alt" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].date_label | default: "Updated:" }}</strong> <time datetime="{{ page.last_modified_at | date: "%Y-%m-%d" }}">{{ page.last_modified_at | date: "%B %-d, %Y" }}</time></p>
5656
{% elsif page.date %}
57-
<p class="page__date"><strong><i class="fas fa-fw fa-calendar-alt" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].date_label | default: "Updated:" }}</strong> <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%B %d, %Y" }}</time></p>
57+
<p class="page__date"><strong><i class="fas fa-fw fa-calendar-alt" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].date_label | default: "Updated:" }}</strong> <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%B %-d, %Y" }}</time></p>
5858
{% endif %}
5959
</footer>
6060

0 commit comments

Comments
 (0)
Please sign in to comment.