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

allow default layouts #18

Open
dherman opened this issue Jul 20, 2012 · 2 comments
Open

allow default layouts #18

dherman opened this issue Jul 20, 2012 · 2 comments
Labels

Comments

@dherman
Copy link
Contributor

dherman commented Jul 20, 2012

The fact that codex lets me have nested directories is the killer feature I need for the TC39 wiki, which many other static site generators (like Jekyll) don't seem to support. But it would be great if nested directories could default to their parents' layouts, instead of having to create new layout files for every child.

Dave

@logicalparadox
Copy link
Owner

You can currently use the template header tag in the markdown file to overwrite which template to use so you don't have tons of template files. The template name is the filename of the template without the .jade extension.

I will see about having the pages plugin intelligently traverse up its parent's tree to find an available template. Until then, this will allow to clean up your template folder.

@dherman
Copy link
Contributor Author

dherman commented Jul 20, 2012

I don't think that would be much of an improvement since there are generally many more .md files than templates. This isn't a deal-breaker or anything, but I think defaulting up the parent hierarchy would be a good convenience to support.

Thanks,
Dave

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants