New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I exclude a directory with a number for a name? #2542

Closed
alexandtheweb opened this Issue Jun 25, 2014 · 3 comments

Comments

Projects
None yet
4 participants
@alexandtheweb

alexandtheweb commented Jun 25, 2014

How do I exclude several directories in my _config.yml if those directories have numbers for a name? For example:

exclude: [2014,2013]

Gives me:

"..no implicit conversion of Fixnum into String (TypeError)"

@kleinfreund

This comment has been minimized.

Contributor

kleinfreund commented Jun 25, 2014

Does this work?

exclude:
  - "2013"
  - "2014"
@parkr

This comment has been minimized.

Member

parkr commented Jun 25, 2014

If you quote the numbers, they will be strings. We could probably call #to_s on all input.

@alexandtheweb

This comment has been minimized.

alexandtheweb commented Jun 25, 2014

Thank you both, that did it.

parkr added a commit that referenced this issue Jun 25, 2014

@jekyll jekyll locked and limited conversation to collaborators Feb 27, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.