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

Docpad is picking the wrong layout #227

Closed
dimitarkolev opened this issue May 23, 2012 · 2 comments
Closed

Docpad is picking the wrong layout #227

dimitarkolev opened this issue May 23, 2012 · 2 comments

Comments

@dimitarkolev
Copy link

I have tree layouts called project.html.eco project-full.html.eco and project-3d.html.eco i have some documetns that point to some of them. I found out that documents with layout projet are rendered with project-full layout (it was fine few weeks ago). Are there any name constraints or something else that may confuse docpad?

@balupton
Copy link
Member

Blast. We now use $startsWith instead of doing an exact match as of DocPad 5.2.3, which is what would be causing it.

I'll see what I can do. For the meantime, you can change layout: project to layout: project.html.eco and that should do the trick.

@dimitarkolev
Copy link
Author

This time I am not in hurry i will wait for the fix.

balupton added a commit that referenced this issue Oct 23, 2013
…loses #227

- v5.2.5 May 18, 2012
	- Fixed layout selection when two layout's share similar names -
Closes [#227](#227)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants