mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-28 03:01:03 -04:00
Don't generate excerpts for non-html pages (#8234)
Merge pull request 8234
This commit is contained in:
@@ -190,7 +190,7 @@ module Jekyll
|
||||
|
||||
def excerpt
|
||||
return if excerpt_separator.empty? || !site.config["page_excerpts"]
|
||||
return data["excerpt"] unless self.class == Jekyll::Page
|
||||
return data["excerpt"] unless self.class == Jekyll::Page && html?
|
||||
|
||||
data["excerpt"] ||= Jekyll::PageExcerpt.new(self).to_liquid
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user