octopress icon indicating copy to clipboard operation
octopress copied to clipboard

"Jekyll 2.0.3 | Error: Not a directory" when using jekyll_alias_generator

Open linduxed opened this issue 10 years ago • 2 comments

I just now rebased my blog code on top of the latest commit in master (c977b91e40b481b5f3c3f1d0bad5797c64571ccf) and apparently the latest version doesn't play well with the jekyll_alias_generator.

I have a couple of posts which I've made aliases for, so I don't know if it's just this one specific file with an alias that breaks or if it's many, but here's the error:

jekyll 2.0.3 | Error:  Not a directory @ rb_file_s_stat - /home/linduxed/Documents/blog/public/blog/2013/6/29/some-blog-post/index.html/

It could be that the plugin needs to be tweaked to work with Jekyll 2.x, but I wouldn't know.

linduxed avatar Jul 20 '14 16:07 linduxed

@linduxed It looks like the jekyll-redirect-from plugin takes care of this same need. Can you try that and let us know if it suits your needs? https://github.com/jekyll/jekyll-redirect-from

parkr avatar Jul 20 '14 18:07 parkr

For anyone reaching here now, looks like this issue is fixed in the plugin with the commit https://github.com/tsmango/jekyll_alias_generator/commit/ff09231320909dede97e44a767acd88ceb74e6a7

rahulpnath avatar Aug 09 '16 22:08 rahulpnath