1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

Improve the way to define and use date-format.

This commit is contained in:
Cotes Chung
2020-02-22 07:16:58 +08:00
parent 4661ec95b9
commit b3c493a6de
7 changed files with 22 additions and 26 deletions

View File

@@ -1,10 +0,0 @@
<!--
Define the liquid date formats.
v2.0
https://github.com/cotes2020/jekyll-theme-chirpy
© 2019 Cotes Chung
Published under the MIT License
-->
{% assign TOOLTIP_DATE = "%a, %b %e, %Y, %l:%M %p %z" %}
{% assign POST_DATE = "%b %e, %Y" %}

View File

@@ -53,7 +53,7 @@
<a href="{{ post.url | relative_url }}">
<div class="card-body">
<span class="timeago small">
{{ post.date | date: POST_DATE }}
{{ post.date | date: site.data.date_format.post }}
<i class="unloaded">{{ post.date | date_to_xmlschema }}</i>
</span>
<h3 class="pt-0 mt-1 mb-3" data-toc-skip>{{ post.title }}</h3>