Date: Tue, 4 Aug 2020 22:39:01 +0800
Subject: [PATCH] Show date of posts (#2526)
* add date to read-time.html
* add option for show_date, dynamic icon style
* change read-time to post__meta
* cleanup post__metal.html
* cleanup post__meta include variables
* put date before read time
* remove space in include variable
* allow customisation of post__meta separator
* add some documentation
* oops fix typo derp
* add post date image
* change page meta separator customisation to CSS
---
_includes/archive-single.html | 4 +-
_includes/page__hero.html | 4 +-
_includes/post__meta.html | 35 ++++++++++++++++++
_includes/read-time.html | 15 --------
_layouts/single.html | 4 +-
_sass/minimal-mistakes/_page.scss | 6 +++
docs/_docs/05-configuration.md | 34 +++++++++++++++++
.../2012-01-02-layout-post-date-disabled.md | 18 +++++++++
docs/_posts/2012-01-02-layout-post-date.md | 18 +++++++++
docs/assets/images/mm-post-date-example.png | Bin 0 -> 57632 bytes
.../2012-01-02-layout-post-date-disabled.md | 18 +++++++++
test/_posts/2012-01-02-layout-post-date.md | 18 +++++++++
12 files changed, 150 insertions(+), 24 deletions(-)
create mode 100644 _includes/post__meta.html
delete mode 100644 _includes/read-time.html
create mode 100644 docs/_posts/2012-01-02-layout-post-date-disabled.md
create mode 100644 docs/_posts/2012-01-02-layout-post-date.md
create mode 100644 docs/assets/images/mm-post-date-example.png
create mode 100644 test/_posts/2012-01-02-layout-post-date-disabled.md
create mode 100644 test/_posts/2012-01-02-layout-post-date.md
diff --git a/_includes/archive-single.html b/_includes/archive-single.html
index c262de1b..ef460998 100644
--- a/_includes/archive-single.html
+++ b/_includes/archive-single.html
@@ -24,9 +24,7 @@
{{ title }}
{% endif %}
- {% if post.read_time %}
- {% include read-time.html %}
- {% endif %}
+ {% include post__meta.html type=include.type %}
{% if post.excerpt %}{{ post.excerpt | markdownify | strip_html | truncate: 160 }}
{% endif %}
diff --git a/_includes/page__hero.html b/_includes/page__hero.html
index 27fcaff7..8e477535 100644
--- a/_includes/page__hero.html
+++ b/_includes/page__hero.html
@@ -31,9 +31,7 @@
{% elsif page.header.show_overlay_excerpt != false and page.excerpt %}
{{ page.excerpt | markdownify | remove: "
" | remove: "
" }}