Skip to content

Commit e1ff8ee

Browse files
authored
Simplify conditional in SeoTag::Drop#date_modified (#343)
Merge pull request 343
1 parent 442133d commit e1ff8ee

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/jekyll-seo-tag/drop.rb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,7 @@ def image
109109

110110
def date_modified
111111
@date_modified ||= begin
112-
date = if page_seo["date_modified"]
113-
page_seo["date_modified"]
114-
elsif page["last_modified_at"]
115-
page["last_modified_at"].to_liquid
116-
else
117-
page["date"]
118-
end
112+
date = page_seo["date_modified"] || page["last_modified_at"].to_liquid || page["date"]
119113
filters.date_to_xmlschema(date) if date
120114
end
121115
end

0 commit comments

Comments
 (0)