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

@@ -7,8 +7,6 @@ layout: page
# MIT Licensed
---
{% include date-format.html %}
<div id="post-list">
{% for post in paginator.posts %}
<div class="post-preview">
@@ -24,8 +22,9 @@ layout: page
<div class="post-meta text-muted pt-1">
<!-- posted date -->
<i class="far fa-clock fa-fw"></i>
<span class="timeago" data-toggle="tooltip" data-placement="bottom" title="{{ post.date | date: TOOLTIP_DATE }}">
{{ post.date | date: POST_DATE }}
<span class="timeago" data-toggle="tooltip" data-placement="bottom"
title="{{ post.date | date: site.data.date_format.tooltip }}">
{{ post.date | date: site.data.date_format.post }}
<i class="unloaded">{{ post.date | date_to_xmlschema }}</i>
</span>
<!-- page views -->