Add support for customizable date format (#533)
* Add support for customizable date format * Add support for customizable date format
This commit is contained in:
parent
e58cd5259e
commit
96c25086b5
@ -150,6 +150,9 @@ excerpt_length: 50
|
|||||||
# and RSS feed title
|
# and RSS feed title
|
||||||
title-separator: "-"
|
title-separator: "-"
|
||||||
|
|
||||||
|
# Ruby Date Format
|
||||||
|
date_format: "%B %-d, %Y"
|
||||||
|
|
||||||
# --- Don't need to touch anything below here (but you can if you want) --- #
|
# --- Don't need to touch anything below here (but you can if you want) --- #
|
||||||
|
|
||||||
# Output options (more information on Jekyll's site)
|
# Output options (more information on Jekyll's site)
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if include.type == "post" %}
|
{% if include.type == "post" %}
|
||||||
<span class="post-meta">Posted on {{ page.date | date: "%B %-d, %Y" }}</span>
|
<span class="post-meta">Posted on {{ page.date | date: site.date_format }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -61,7 +61,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if include.type == "post" %}
|
{% if include.type == "post" %}
|
||||||
<span class="post-meta">Posted on {{ page.date | date: "%B %-d, %Y" }}</span>
|
<span class="post-meta">Posted on {{ page.date | date: site.date_format }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -25,7 +25,7 @@ title: 'Tag Index'
|
|||||||
<div class="tag-entry">
|
<div class="tag-entry">
|
||||||
<a href="{{ post.url | relative_url }}">{{- post.title -}}</a>
|
<a href="{{ post.url | relative_url }}">{{- post.title -}}</a>
|
||||||
<div class="entry-date">
|
<div class="entry-date">
|
||||||
<time datetime="{{- post.date | date_to_xmlschema -}}">{{- post.date | date: "%B %d, %Y" -}}</time>
|
<time datetime="{{- post.date | date_to_xmlschema -}}">{{- post.date | date: site.date_format -}}</time>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
|
Loading…
Reference in New Issue
Block a user