-
Notifications
You must be signed in to change notification settings - Fork 102
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 to select template with cobalt new
?
#712
Comments
Currently, cobalt is hardcoded to supporting In part, this was trying to balance customization with simplicity and intuitiveness. I'm open to ideas on what people will want to see though. |
Oh, okay. Again, notes in #355 made it seem like cobalt can derive template name from the path (which is kinda true, just for the those two names). In my opinion, this kind of implicit deriving is not very intuitive: for example, you follow the getting started guide trying to write a new post but get the |
So to further clarify on this. The long term goal of cobalt is to add support for "collections". "posts" is a built-in collection. By generalizing it, we could define separate "talks" from "posts" or anything else someone might want. Before I fully implement collections, I am planning to re-architect cobalt using the ECS architecture which should make collections a lot easier to implement. The There are chances that
So the question would be how to generalize this, if needed. Some examples include
|
Going to go ahead and close this out as the collection is the unit of template selection |
Oh, that's good. You refer to layouts - https://cobalt-org.github.io/docs/layouts/ - correct? |
I'm referring to collections of which we currently only have |
Let's say I created a
_default/special_posts.md
, which I want to base some on posts on. How can I specify using it instead of_default/posts.md
? I think that #355 does that, but I'm not sure I follow the logic. I tried doingcobalt new "Test" -f special_posts/
, but it just created a post based on_default/pages.md
(which makes sense since it isn't in the posts dir).Thanks in advance.
The text was updated successfully, but these errors were encountered: