Skip to content
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

Collections ignoring permalink settings #2407

Closed
mattes opened this issue May 14, 2014 · 4 comments
Closed

Collections ignoring permalink settings #2407

mattes opened this issue May 14, 2014 · 4 comments

Comments

@mattes
Copy link

mattes commented May 14, 2014

I would expect that the following in my _config.yml ...

collections:
  blog:
    output: true
    permalink: pretty
  docs:
    output: true
    permalink: pretty

... produces:

$ tree
.
├── 2014
│   └── 05
│       └── 15
│           └── hello-world
│               └── index.html

but it seems as if it ignores the permalink setting and produces:

$ tree
.
├── 2014-05-15-hello-world.html

full dir structure

Am I doing sth wrong?

@yihangho
Copy link
Contributor

I think this is the intended behavior. See this. However, I think allowing custom permalinks is a good idea, too. Any thoughts?

@yihangho
Copy link
Contributor

Now that I dig more, I feel that this kind of permalinks like pretty, date, etc might not be such a good idea. The reason behind is that collections are meant to have maximal customizability, but to achieve this kind of permalinks, we need to have make sure that variables like categories, year, etc are set one way or the other.

For example, the filename of the content of collections do not have to follow the YYYY-MM-DD-title.ext format, without that, it can be quite difficult to extract, for example, the date.

Thoughts?

@parkr
Copy link
Member

parkr commented May 15, 2014

Duplicate of #2293. I think we'll need more flexibility as well, as collections aren't meant to require certain front-matter attributes.

@mattes
Copy link
Author

mattes commented May 15, 2014

I don't see the problem with supporting pretty and so on. If you use YYYY-MM-DD-title.ext it will work. If you use any other format, it won't work.

@parkr parkr closed this as completed Jul 31, 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.
Projects
None yet
Development

No branches or pull requests

4 participants