-
-
Notifications
You must be signed in to change notification settings - Fork 495
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
The difference between data.content and templateContent #882
Comments
I have the same question. From experimentation, it seems collection items have an |
If this is intentional, it really ought to be in the docs. I just spent an hour and a half trying to figure out why UPDATE: It seems that |
Seeing as |
Related to #338, It’s unlikely that we’ll remove |
I have a collection of pages grouped by
tags: episode
. When I cycle through such collection using{%- for episode in collections.episode -%}
I can easily get front matter data byepisode.date
for example. When I need the actual content of a page, I useepisode.data.content
. I’m not sure where it came from, I can’t find it on docs, but it used to work.Today I realized that it doesn’t work anymore and
{{ episode.data.content }}
returns nothing. I foundtemplateContent
and it worked just likedata.content
used to work before.The weird thing is that
data.content
still works it one project, but stopped working on the other, so I had to replace it withtemplateContent
. Both of the projects use the latest0.10.0
and I have no idea what’s going on :)I’m glad I (kind of) figured out how to make it work. But here are my questions:
data.content
, where it’s documented, why it’s not always available?data.content
andtemplateContent
?Thank you 🌲
The text was updated successfully, but these errors were encountered: