-
Notifications
You must be signed in to change notification settings - Fork 246
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
Allow full-text blog post contents #34
Comments
For example, atom.j2 does this:
But I’m not clear on what |
Hi, The So, in your content files you can mark portions of the content using the For example, you can see that the entire blog post is marked out here with a Also, see excerpts marked out separately in content: What this lets us do is to use either the entire post or just the excerpt in our atom feed: These two files generate the feed with full-content or just excerpts:
HTH |
Yes, very helpful. This is now my listing.j2:
The The key thing to understand is that the |
No problem :) Glad it worked. |
In
listing.js
, in the loop{% for res in resource.node.walk_resources_sorted_by_time() %}
, I can successfully display the full file contents ({{ res.source.read_all() }}
) but it’s unclear how to actually just get the text (without the metadata). It’s clear that you have a way to parse this out (__read_resource__
inMetaPlugin
) and it’s obviously used in the single page/resource context, but I’m at a loss for how to use it in the blog/listing context.The text was updated successfully, but these errors were encountered: