Simplify conditional in SeoTag::Drop#date_modified (#343)
Merge pull request 343
This commit is contained in:
parent
442133d898
commit
e1ff8ee6e8
|
@ -109,13 +109,7 @@ module Jekyll
|
|||
|
||||
def date_modified
|
||||
@date_modified ||= begin
|
||||
date = if page_seo["date_modified"]
|
||||
page_seo["date_modified"]
|
||||
elsif page["last_modified_at"]
|
||||
page["last_modified_at"].to_liquid
|
||||
else
|
||||
page["date"]
|
||||
end
|
||||
date = page_seo["date_modified"] || page["last_modified_at"].to_liquid || page["date"]
|
||||
filters.date_to_xmlschema(date) if date
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue