siteleaf / learn.siteleaf.com

Siteleaf Learn is a documentation and learning resource for Siteleaf v2.
http://learn.siteleaf.com
26 stars 25 forks source link

Setting the default layout does not save #86

Closed brettchalupa closed 8 years ago

brettchalupa commented 8 years ago

The quick version: When adding new posts, I want them to have the layout default to post, but the value does not get set upon post save unless the value is selected from the dropdown.

The details:

When following the docs for setting default values, the default value for the layout does not save to the frontmatter of the created markdown file. The layout only saves when selecting an item from the drop-down, even if the value appears to be prepropulated. Here is a gif showing the current way I get the layout to save:

siteleaf-default-layout

As seen in the gif, once a value is selected from the dropdown, the x appears. Before the selection, the value is pre-populated by does not save.

Here is the defaults in the site's _config.yml:

defaults:
- scope:
    path: ''
    type: posts
  values:
    layout: post
    author: 

Is there anything on my end that I need to change or more info I can provide? Is this the right place to open this issue? Thank you!

sawyerh commented 8 years ago

Moving to Slack discussion. Will re-open if the issue resides in the docs copy.