You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 25, 2019. It is now read-only.
Most of the time you get a page object in templates, you get a page's meta object. This is good. However, if you ask for site.pages in a template, you get real page objects, which is bad, because site.pages[0].author is undefined.
Either site.pages should present the right objects (meta dicts instead of Page objects), or Page objects should gain an ability to mimic meta dicts (via a custom getitem method, or something).
Most of the time you get a page object in templates, you get a page's meta object. This is good. However, if you ask for
site.pages
in a template, you get real page objects, which is bad, becausesite.pages[0].author
is undefined.Either
site.pages
should present the right objects (meta dicts instead of Page objects), or Page objects should gain an ability to mimic meta dicts (via a custom getitem method, or something).Credit goes to carloratm for finding the test case for this bug, on his site https://bitbucket.org/carloratm/carlorat.me/src
The text was updated successfully, but these errors were encountered: