Skip to content

Commit

Permalink
Fix a bug of incorrect parsing of page.modified_date (jekyll#455)
Browse files Browse the repository at this point in the history
Merge pull request 455
  • Loading branch information
hszhakka authored Feb 5, 2020
1 parent 3ac587e commit 1868ed1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}
</time>
{%- if page.modified_date -%}
~
<time class="dt-modified" datetime="{{ page.modified_date | date_to_xmlschema }}" itemprop="dateModified">
{{ page.modified_date | date: date_format }}
{%- assign mdate = page.modified_date | date_to_xmlschema -%}
<time class="dt-modified" datetime="{{ mdate }}" itemprop="dateModified">
{{ mdate | date: date_format }}
</time>
{%- endif -%}
{%- if page.author -%}
Expand Down

0 comments on commit 1868ed1

Please sign in to comment.