jekyll-spaceship 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll-spaceship/cores/manager.rb +8 -0
- data/lib/jekyll-spaceship/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a416b7cf9c8e911656cded0ab54e172ef344f3efd767647c11357c40cc95733e
|
4
|
+
data.tar.gz: d0b73825b4ad8ef33b5cd39f34902159aa29110d36cf4a33b0989ea4aeecb30a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb35ba184747e58e6a5ab3d30f3140f347ed27729050a281da36dd72990cf63a3eed0a9a8c3058b4bf14f529ebfc9c318c2c0495ccec78145d86a786343dda49
|
7
|
+
data.tar.gz: 8ba26f392d63e59cbc7bab80849608cc723ee05839e3f696757e0a23664b5ec491251ff39dfdd11bc530833e07028413a94b3bfa0a1ff98211c2255400b6ccd5
|
@@ -58,6 +58,7 @@ module Jekyll::Spaceship
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def self.dispatch(page, container, event)
|
61
|
+
# dispatch to each processor
|
61
62
|
@@_processors.each do |processor|
|
62
63
|
processor.dispatch page, container, event
|
63
64
|
break unless processor.next?
|
@@ -65,6 +66,13 @@ module Jekyll::Spaceship
|
|
65
66
|
if event.to_s.start_with?('post') and Type.html? output_ext(page)
|
66
67
|
self.dispatch_html_block(page)
|
67
68
|
end
|
69
|
+
# update page excerpt
|
70
|
+
@@_processors.each do |processor|
|
71
|
+
next unless processor.handled
|
72
|
+
next unless page.is_a? Jekyll::Document
|
73
|
+
break page.data['excerpt'] = Jekyll::Excerpt.new(page)
|
74
|
+
end
|
75
|
+
# call on_handled
|
68
76
|
@@_processors.each do |processor|
|
69
77
|
processor.on_handled if processor.handled
|
70
78
|
break unless processor.next?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-spaceship
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jeffreytse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|