Skip to content
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

Using partials in a list content page causes error #84

Open
Aintaer opened this issue Jan 13, 2013 · 0 comments
Open

Using partials in a list content page causes error #84

Aintaer opened this issue Jan 13, 2013 · 0 comments

Comments

@Aintaer
Copy link

Aintaer commented Jan 13, 2013

Using an index.json:

{
  "content" : {
    "list" : "post",
    "limit" : 1
  },
  "partials" : {
    "navigation" : "navigation"
  }
}

Causes blacksmith to error out at:

node_modules\blacksmith\lib\blacksmith\page.js:158
          metadata:   source._content.metadata,
                                     ^
TypeError: Cannot read property 'metadata' of undefined

AFAIK, this happens due to blacksmith attempting to render the partials with metadata where none exists due to the page being entirely generated from posts, hence having no metadata of its own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant