diff --git a/lib/jekyll-seo-tag/drop.rb b/lib/jekyll-seo-tag/drop.rb index bd3710c..3ee277d 100644 --- a/lib/jekyll-seo-tag/drop.rb +++ b/lib/jekyll-seo-tag/drop.rb @@ -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