Giter Site home page Giter Site logo

jekyll_alias_generator's People

Contributors

christophermaier avatar joliss avatar latish avatar mglukhovsky avatar rawsyntax avatar smholloway avatar sstarr avatar tsmango avatar yous avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jekyll_alias_generator's Issues

If alias is a number, ruby gets confused -- can't convert Fixnum into String (TypeError)

Hi,

If the alias is a pure number, ruby gets made. The hack is to put the alias in quotes, but I'm sure there is a better way. (Sadly I know next to nothing about ruby, else I'd submit a patch).

    _plugins/alias_generator.rb:63:in `extname': can't convert Fixnum into String (TypeError)
from /_plugins/alias_generator.rb:63:in `generate_aliases'
from/_plugins/alias_generator.rb:58:in `each'
from /_plugins/alias_generator.rb:58:in `generate_aliases'
from /_plugins/alias_generator.rb:43:in `process_posts'
from /_plugins/alias_generator.rb:42:in `each'
from /_plugins/alias_generator.rb:42:in `process_posts'
from /_plugins/alias_generator.rb:37:in `generate'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.11.2/bin/../lib/jekyll/site.rb:184:in `generate'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.11.2/bin/../lib/jekyll/site.rb:183:in `each'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.11.2/bin/../lib/jekyll/site.rb:183:in `generate'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.11.2/bin/../lib/jekyll/site.rb:39:in `process'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.11.2/bin/jekyll:250
from /usr/bin/jekyll:23:in `load'
from /usr/bin/jekyll:23

Maintained?

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 updated. Thanks!

jekyll 3.0.0 deprecation warning

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, the plugin still works as expected.

Pages should not be processed differently than posts.

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 process_pages method and calling process_posts instead (and for semantics renaming it process_posts_and_pages).

However, it seems like there was a reason to have different methods for posts and pages. I'd be happy to provide a pull request, once I understand your motivation.

alias_generator causes stack level too deep error with jekyll-2.1.0

I'm getting ~/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/jekyll-2.1.0/lib/jekyll/cleaner.rb:59: stack level too deep (SystemStackError) while generating a Jekyll page and was able to reproduce the error with a minimal setup (joelmeyerhamme/jekyll_alias_issue#1):

jekyll new jekyll_alias_issue && cd jekyll_alias_issue
mkdir _plugins
curl https://raw.githubusercontent.com/tsmango/jekyll_alias_generator/master/_plugins/alias_generator.rb\
  > _plugins/alias_generator.rb
rm *.html *.md
cat <<EOF > index.md

---
layout: page
title: Index
alias: "/index/"

---

This is the base Jekyll theme.
EOF
jekyll build

Stack level too deep error

It was working fine on jekyll 1.4.3... Now I updated ruby to 2.0 and jekyll to 2.1.1 and getting the following error

Configuration file: /home/fareez/sites/fareez.info/_config.yml
            Source: /home/fareez/sites/fareez.info
       Destination: /home/fareez/sites/fareez.info/_site
      Generating... 
/home/fareez/.rvm/gems/ruby-2.0.0-p481/bin/ruby_executable_hooks:15: stack level too deep (SystemStackError)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.