jekyll_alias_generator
jekyll_alias_generator copied to clipboard
A Jekyll plugin for generating redirect pages for posts.
Without this patch, getting following deprecation warning in Jekyll 3.6: ``` Deprecation: posts.each should be changed to posts.docs.each. Called by ["/usr/local/lib/ruby/gems/2.4.0/gems/jekyll-3.6.0/lib/jekyll/collection.rb:39:in `method_missing'"] ```
Is this still maintained? It's linked from the Jekyll Plugins page. If not, it would be great to know which fork is best maintained so we can get the docs...
It would be nice to have this as a Gem. I was able to [create one](https://github.com/jhabdas/jekyll-money) in a few hours with no prior experience creating a RubyGem.
Jekyll 3 deprecated calling `Collection#each` in favor of `Collection#docs#each`. This change removes the deprecation warning with Jekyll 3. Fixes #21.
After upgrading to Jekyll 3.0.0 I get the following deprecation warning: ``` Deprecation: Collection#each should be called on the #docs array directly. Called by alias_generator.rb:42:in `process_posts'. ``` Just to clarify,...
When generating aliases for pages in the root dir like `/about.md` (the actual file, not the alias), the plugin generates the wrong forwarding file. I fixed this by deleting the...
`alias_sections.size` fails when it is nil, which happens when the alias is in the root dir (`alias: /somepage.html`) because Array access returns nil if the start is more than one...