make date_format a site-wide variable
This commit is contained in:
parent
e01c63ade6
commit
76e6a6c905
@ -14,3 +14,5 @@ plugins:
|
|||||||
- jekyll-feed
|
- jekyll-feed
|
||||||
- jekyll-seo-tag
|
- jekyll-seo-tag
|
||||||
- jekyll-paginate
|
- jekyll-paginate
|
||||||
|
|
||||||
|
date_format: "%b %-d, %Y"
|
||||||
|
@ -11,7 +11,10 @@ layout: default
|
|||||||
{{ post.title | escape }}
|
{{ post.title | escape }}
|
||||||
</a>
|
</a>
|
||||||
</h2>
|
</h2>
|
||||||
<span>{{ post.date | date: "%b %-d, %Y" }}</span>
|
<span>{{ post.date | date: site.date_format }}</span>
|
||||||
|
{%- if post.updated %}
|
||||||
|
<span>(Updated {{ post.updated | date: site.date_format }})</span>
|
||||||
|
{% endif -%}
|
||||||
<p>{{ post.description }}</p>
|
<p>{{ post.description }}</p>
|
||||||
</li>
|
</li>
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
|
@ -13,12 +13,12 @@ layout: default
|
|||||||
</span>
|
</span>
|
||||||
<!-- • -->
|
<!-- • -->
|
||||||
<time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
|
<time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
|
||||||
{{ page.date | date: "%b %-d, %Y" }}
|
{{ page.date | date: site.date_format }}
|
||||||
</time>
|
</time>
|
||||||
•
|
•
|
||||||
{%- if page.updated %}
|
{%- if page.updated %}
|
||||||
<time datetime="{{ page.updated | date_to_xmlschema }}" itemprop="dateModified">
|
<time datetime="{{ page.updated | date_to_xmlschema }}" itemprop="dateModified">
|
||||||
(Updated {{ page.updated | date: "%b %-d, %Y" }})
|
(Updated {{ page.updated | date: site.date_format }})
|
||||||
</time>
|
</time>
|
||||||
•
|
•
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
Loading…
Reference in New Issue
Block a user