Yes, Jekyll supports inheritance for YAML front matter. This is an incredibly useful feature as it helps keep code DRY (Don’t Repeat Yourself) and makes setting up multiple pages or posts much quicker.
To set up inheritance for YAML front matter in Jekyll, you generally start off by setting a main template page. In this page, you put the fields or content you want the pages to inherit. For example, if you wanted a page repeat the same title for all the pages, you’d add title as key value pair to your template.
Once the fields are set up in your template, you can then include your template into any other page or post you want to set up. To include the template, you just need to type in the following line at the top of the page file you want to include it in.
{% include template_name.html %}
By including the template using this line, any fields set up in the template will be included in the page the template was included in. You can also include other content in the page (like text or code) or override the values set in the template if you need to.
Hopefully this helps answer your question about YAML front matter inheritance in Jekyll. For more information, you can check out the GitHub Pages documentation for more information.