Skip to content

Commit d01a89f

Browse files
committed
fix: undefined method excerpt_separator (#66)
In Jekyll, only the Jekyll::Document has excerpt_seperator, to fix this issue, we should filter the objects which aren't instances of Jekyll::Document.
1 parent 2c008ed commit d01a89f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/jekyll-spaceship/cores/manager.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ def self.dispatch(page, container, event)
6868
end
6969
# update page excerpt
7070
@@_processors.each do |processor|
71-
next if not processor.handled
71+
next unless processor.handled
72+
next unless page.is_a? Jekyll::Document
7273
break page.data['excerpt'] = Jekyll::Excerpt.new(page)
7374
end
7475
# call on_handled

0 commit comments

Comments
 (0)