elevenlabs-amp-jekyll 1.3 → 1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/amp_generate.rb +7 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8f99a7567b9884fc31d7c27abc4716514e7996c
|
4
|
+
data.tar.gz: 796e725bc8eec41c59ccb12de12e89c8e32ed83b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c5f8f46f3e47cbf44432693f8f6a187287213f80fe000f64f7eafa8b48c5ff047f5c2cf20768aa372400154ad05e998427b1750ec13d6a4521ca92344f2a5e9
|
7
|
+
data.tar.gz: b1b8c20d7c7399a98ad07002258be5230d5eb595067404dcb2adf0101717cf8c0745bfad447ba81caaf34ca7cb17dab869d9ea7d12d898b7c7224c22ee0f3261
|
data/lib/jekyll/amp_generate.rb
CHANGED
@@ -30,10 +30,14 @@ module Jekyll
|
|
30
30
|
class AmpGenerator < Generator
|
31
31
|
priority :low
|
32
32
|
def generate(site)
|
33
|
+
languages = site.config['languages']
|
33
34
|
dir = site.config['ampdir'] || 'amp'
|
34
|
-
|
35
|
-
|
36
|
-
site.
|
35
|
+
languages.each do |lang|
|
36
|
+
puts site.inspect
|
37
|
+
site.posts.doc.each do |post|
|
38
|
+
next if post.data['skip_amp'] == true
|
39
|
+
site.pages << AmpPost.new(site, site.source, File.join(dir, post.id), post)
|
40
|
+
end
|
37
41
|
end
|
38
42
|
end
|
39
43
|
end
|