elevenlabs-amp-jekyll 1.3 → 1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jekyll/amp_generate.rb +7 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d5e11866e5528f4e812b2024e78d1f56ee24009
4
- data.tar.gz: 0381d69062da9804df11e15f3d2eff1346264912
3
+ metadata.gz: b8f99a7567b9884fc31d7c27abc4716514e7996c
4
+ data.tar.gz: 796e725bc8eec41c59ccb12de12e89c8e32ed83b
5
5
  SHA512:
6
- metadata.gz: 815877c55636445e99fc9d058ff48640892b4978d79bdcf163536b4038cc4eb2656907d2cd658917d4aac87e8c75860b4d286dcdc30a6e9a96238155e1bf85b8
7
- data.tar.gz: 198397f7b8d0ead7c6dba200be6c6c6f8e8154d7a3bd5a64f71fe4c856c35224df65a4724d0568d37b10417223b9b1fe0c5753830c9aff3e58744af7687528b3
6
+ metadata.gz: 7c5f8f46f3e47cbf44432693f8f6a187287213f80fe000f64f7eafa8b48c5ff047f5c2cf20768aa372400154ad05e998427b1750ec13d6a4521ca92344f2a5e9
7
+ data.tar.gz: b1b8c20d7c7399a98ad07002258be5230d5eb595067404dcb2adf0101717cf8c0745bfad447ba81caaf34ca7cb17dab869d9ea7d12d898b7c7224c22ee0f3261
@@ -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
- site.posts.each do |post|
35
- next if post.data['skip_amp'] == true
36
- site.pages << AmpPost.new(site, site.source, File.join(dir, post.id), post)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elevenlabs-amp-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.3'
4
+ version: '1.4'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juuso Mikkonen