Closed dmytro closed 11 years ago
_plugins/galleries.rb:128:in `block in files_to_resize': uninitialized constant Jekyll::SitemapFile (NameError)
You seem to be calling a method from another plugin, or some other dependency.
Interesting. Could be Jekyll version related. I'm on 1.1.2, let me check.
It looks like I'm still on 1.0.3. I'll update it tomorrow and try again. It's most likely the problem.
Hmmm. It's still doing it on 1.1.2...
I can't seem to find any references to "SitemapFile" in mojombo/jekyll, either, and Google is only returning results for a plugin called "Jekyll Sitemap Generator."
Oh... Apologies. I see the problem. I've copy pasted row from Sitemap Generator. It should be Jekyll::StaticFile, not SitemapFile.
Let me fix it.
@redwallhp Please take a look now. I've added missing class, same way as it's done in SitemapGenerator. It looks a bit odd, but works.
I am new to Jekyll and Ruby and have been doing some experimenting. I seem to be running into the issue where the generated thumbs are being deleted after they are generated.
Two changes include in the pull request:
When plugin is used to generate content in
_site
subdirectory, then all generated file *-thumb.jpg are deleted right after generation. Adding them tosite.static_files
prevent form cleaning.