prose / starter

A starter site for Jekyll + Prose
http://prose.github.io/starter
BSD 3-Clause "New" or "Revised" License
356 stars 1.08k forks source link

Question about metadata #12

Closed ttunguz closed 11 years ago

ttunguz commented 11 years ago

I can't seem to get metadata to work. I configured the metadata to show a title field but nothing seems to make it show in a new post, when I click the metadata button. I've copied and pasted this from the starter repo but still no cigar.

I'd appreciate any help. Thanks!

My config.yml is this:

name: "title" description: "" url: "url" paginate: 10 markdown: rdiscount permalink: :title

prose: media: 'images' metadata: _posts:

tristen commented 11 years ago

Could be a formatting issue? is your config file valid yaml?

ttunguz commented 11 years ago

Yes, thanks. I linted it and it's valid.

On Mon, Nov 18, 2013 at 8:17 AM, tristen notifications@github.com wrote:

Could be a formatting issue? is your config file valid yaml?

— Reply to this email directly or view it on GitHubhttps://github.com/prose/starter/issues/12#issuecomment-28711828 .

tristen commented 11 years ago

Can you post your config file formatted correctly to this issue then? On first glance the order reads correct.

ttunguz commented 11 years ago

thanks for the help!

name: "title"
description: ""
url: "url"
paginate: 10
markdown: rdiscount
permalink: :title

prose:
  media: 'images'
  metadata:
      _posts:
        - name: "title"
          field:
            element: "text"
            label: "Title"
            value: ""
            type: "text"
tristen commented 11 years ago

I believe the yaml config entries should be indented 2 spaces and not four. The space between your metadata -> _posts entry is 4 followed by 2. This should be consistent.

Also, is there any relevant error in the browsers console?

ttunguz commented 11 years ago

Thanks. I fixed this and the excerpt tag now works but title still fails. No errors in the console

prose:
  media: 'images'
  metadata:
    _posts:
      - name: "title"
        field:
          element: "text"
          label: "Title"
      - name: "excerpt"
        field:
          element: "text"
          label: "Excerpt"
      - name: "layout"
        field:
          element: "hidden"
          value: "post"
tristen commented 11 years ago

Is the title field showing as an editable field in the header?

ttunguz commented 11 years ago

Yes, oh! That's where it shows up! Ok, great. Thanks! Perfect. It works.

On Mon, Nov 18, 2013 at 9:25 AM, tristen notifications@github.com wrote:

I believe the yaml config entries should be indented 2 spaces and not four. The space between metadata -> _posts is 4 followed by 2. This should be consistent.

Also, is there any relevant error in the browsers console?

— Reply to this email directly or view it on GitHubhttps://github.com/prose/starter/issues/12#issuecomment-28718524 .