Skip to content
This repository has been archived by the owner on Jan 25, 2019. It is now read-only.

site.pages is not meta objects. #110

Open
mythmon opened this issue Oct 30, 2013 · 0 comments
Open

site.pages is not meta objects. #110

mythmon opened this issue Oct 30, 2013 · 0 comments
Labels

Comments

@mythmon
Copy link
Owner

mythmon commented Oct 30, 2013

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).

Credit goes to carloratm for finding the test case for this bug, on his site https://bitbucket.org/carloratm/carlorat.me/src

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

No branches or pull requests

1 participant