-
-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tempalte): empty not pass through correctly with liquid version 4
- Loading branch information
Showing
2 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
{% include amsf/type type=include.type %} | ||
|
||
{% comment %} | ||
Page publish date | ||
{% endcomment %} | ||
{% capture amsf_page_pubdate %}{{ page.date }}{% endcapture %} | ||
{% capture amsf_page_pubdate %}{{ type.date }}{% endcapture %} | ||
|
||
{% comment %} | ||
Page update date | ||
{% endcomment %} | ||
{% capture amsf_page_update %} | ||
{% assign date_publish = page.date | date: "%b %-d, %Y" %} | ||
{% assign date_update = page.last_modified_at | date: "%b %-d, %Y" %} | ||
{% assign date_publish = type.date | date: "%b %-d, %Y" %} | ||
{% assign date_update = type.last_modified_at | date: "%b %-d, %Y" %} | ||
|
||
{% if date_publish != date_update %} | ||
{{ page.last_modified_at }} | ||
{{ type.last_modified_at }} | ||
{% else %} | ||
{{ page.date }} | ||
{{ type.date }} | ||
{% endif %} | ||
{% endcapture %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters