Re: [nanoc] Example atom feed implementations

82 views
Skip to first unread message

Denis Defreyne

unread,
Mar 17, 2013, 1:06:36 PM3/17/13
to na...@googlegroups.com
Hi Jason,

I don’t have any examples, but I can explain how you’d do it. You can pass a :content_proc parameter to the #atom_feed method. This proc should return the content to include in the feed. For instance, the following will limit the content to the first 100 characters:

<% atom_feed :content_proc =>
lambda { |item| item.compiled_content[0..100] } %>

Cheers,

Denis



On 01 Mar 2013, at 02:10, Jason P <jper...@gmail.com> wrote:

> I'm a total newbie hack trying to sort my way through some of this stuff. I'd tried searching for some examples on how folks have implemented the atom feed. I've read the atom feed method docs. I'm using the blogging helper and I'm not interested in having a read more fold on my site, but I do want to have one in the feed. This is what I'm trying to do and, well, I'm sucking at figuring this out. Thanks in advance for any helpful resources you can point me to.
>
>
> --
> --
> You received this message because you are subscribed to the nanoc discusssion group.
>
> To post to this group, send email to na...@googlegroups.com
> To unsubscribe from this group, send email to
> nanoc+un...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nanoc?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups "nanoc" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to nanoc+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Reply all
Reply to author
Forward
0 new messages