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

Body field 'body' not found in <Page model='blog' path='/blog #20

Open
rgommers opened this issue Apr 11, 2019 · 4 comments
Open

Body field 'body' not found in <Page model='blog' path='/blog #20

rgommers opened this issue Apr 11, 2019 · 4 comments
Assignees

Comments

@rgommers
Copy link

U feed.xml
E blog: Body field 'body' not found in <Page model='blog' path='/blog'>

This seems to happen even if item_model is set to blog-post and hosting the blog under blog/ rather than at /. Full atom.ini:

[blog]
name = My Site
source_path = blog/
url_path = https://full-url-to-site/blog/
filename = feed.xml
items = site.query('/blog/').filter(F.type == 'blog-post')
item_model = blog-post
@goanpeca goanpeca self-assigned this Apr 11, 2019
@goanpeca
Copy link
Member

@rgommers could you provide the repo where you are working so I can take a look at a live example?

@rgommers
Copy link
Author

thanks @goanpeca. Here is the branch I'm working on: https://github.com/rgommers/quansight-labs-site/tree/pygments-atom

@nixjdm
Copy link
Member

nixjdm commented Apr 13, 2019

@rgommers tangential tips from your snippet:

I think url_path and filename are mutually exclusive. For me it seems that when both are specified, only url_path is used.

Also you might not need to specify items / items_model like that if all the children of /blog are blog-post pages. That's a pretty common setup.

The README should be improved.

@rgommers
Copy link
Author

Thanks @nixjdm. Removing items and items_model indeed worked better. I put them there because it's in the README, but indeed not needed (a comment in README would be good).

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

3 participants