From 4b827aadf4f98fc8391594f3d5cf8531728576a5 Mon Sep 17 00:00:00 2001 From: Bang Jun-young Date: Thu, 15 Aug 2019 01:04:36 +0900 Subject: [PATCH 1/2] Add support for customizable date format --- _config.yml | 3 +++ _includes/header.html | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/_config.yml b/_config.yml index 6e765a38a314..d4a50a8365f9 100644 --- a/_config.yml +++ b/_config.yml @@ -150,6 +150,9 @@ excerpt_length: 50 # and RSS feed title title-separator: "-" +# Ruby Date Format +date_format: "%B %-d, %Y" + # --- Don't need to touch anything below here (but you can if you want) --- # # Output options (more information on Jekyll's site) diff --git a/_includes/header.html b/_includes/header.html index 1fea242c6e54..5338f226a5f2 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -36,7 +36,7 @@

{{ page.subtitle }}

{% endif %} {% if include.type == "post" %} - Posted on {{ page.date | date: "%B %-d, %Y" }} + Posted on {{ page.date | date: site.date_format }} {% endif %} @@ -61,7 +61,7 @@

{{ page.subtitle }}

{% endif %} {% if include.type == "post" %} - Posted on {{ page.date | date: "%B %-d, %Y" }} + Posted on {{ page.date | date: site.date_format }} {% endif %} From c6fd740a0da361e947d0bef1eeb977c59906f474 Mon Sep 17 00:00:00 2001 From: Bang Jun-young Date: Thu, 15 Aug 2019 01:35:32 +0900 Subject: [PATCH 2/2] Add support for customizable date format --- tags.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tags.html b/tags.html index 1f40c71a0864..b42ef876c4da 100644 --- a/tags.html +++ b/tags.html @@ -25,7 +25,7 @@

{{- post.title -}}
{%- endfor -%}