Closed jdsimcoe closed 9 years ago
Hi @jdsimcoe,
If you'd like to create metadata settings for your root directory, you can specify that using a pair of empty quotes in place of the parent directory. cc this commit.
For example:
metadata:
'':
- name: "layout"
field:
element: "hidden"
value: "page"
_posts:
- name: "layout"
field:
element: "hidden"
value: "post"
The metadata settings you apply to the root directory will also apply to any child directories, unless you specify a more specific path, as I do above in _posts:
.
In this case, markdown files in _posts
will have a layout value of post
, while everything else in your repo will have a layout value of page
.
BTW, I noticed that you had written specific metadata rules for your _site
directory. Since that directory is generated by Jekyll, you can probably remove those rules, since I don't think you would need to edit anything in there using prose.
Hope that helps.
I have all of my static pages like
about.md
andcontact.md
in the root directory of my project. I can't seem to get the custom metadata editing to work for these entries. For files in_posts
it works great. What am I missing?Here is my Prose section of my
_config.yml
: