-
Notifications
You must be signed in to change notification settings - Fork 2
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
Ability to name-space from multiple files? #17
Comments
Right now there's no functionality for namespacing metadata under a single key like that. I guess I could build in a function similar to the {
"frontmatter": false,
"plugins": [
{"metalsmith-metafiles": {}},
{"metalsmith-metafiles": {
"postfix": ".books.meta",
"namespace": "books"
}},
// Other plugins...
]
} |
Hmmm interesting... I don't like how you would have to manually declare each namespace though.
this looks for a matching base name and adds the parsed file as a key. So in
would be available as
Is available as Kind of makes a Markdown CMS of sorts... I've set it up just to work with .jade files via markdown-in-place. Could be fleshed out a bit. Thoughts? |
Actually now that I think about it, you could do this with a custom parser:
|
That's great! Could I also use Markdown files with a custom parser like that? |
In theory, yes. Note though that |
Ah I see. Ok good to know. Seems like it won't take a file with another name segment in it. |
Oh, darn. Yeah you're right; I should have realized that would happen. Not sure why I didn't. The names of the metadata files are fixed... To be honest, your use case seems to be a bit outside the scope of what My current thought is to add support for some kind of custom matcher object for metadata files, so you could then implement this functionality yourself. Basically I'd be letting you specify your own |
Hi there!
Is it possible to have multiple metafiles pointing to a single file? For example:
index.html
is the "host file".index.html.meta.json
is generic metadata.index.html.books.meta.json
would be found under thebooks
key for theindex.html
file. Does that make sense?The text was updated successfully, but these errors were encountered: