s l a m

Subscribe to "s l a m" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

© copyright 2004
by Marc Barrot.

Monday, April 22, 2002

rssTruncate Cleans Up RSS Feed

New rssTruncate macro shortens any post to its first paragraph or sentence in the published RSS version of your weblog. Use rssTruncate to make posts more readable when scanned in a news aggregator.

The first sentence or paragraph of each post should provide a clear indication of what the post is about, in addition to the post's title.

Subscribers interested in the post can access the full version by clicking on the [read more] link.

With Radio, the post's title usually provides the same link, but you can post without a title (a bad habit :-), or provide a different link for the title, as I've done with this title, that links to the rssTruncate howto.

rssTruncate originates from a hack by Jon Udell.

Dave Winer then added a callbacks table to rss publication, making this hack both cleaner and supported by UserLand.

Paul Holbrook came up with the idea of using the first HTML paragraph of each post instead of the first sentence.

8:29:25 PM  Permalink    Google It!  

coffee anyone?rssTruncate 4th test: the image is replaced by [img] and no read more.

6:45:59 PM  Permalink      

rssTruncate 3rd test: no html paragraph delimiter - the 1st sentence is published in the rss feed - the rest is linked to by read more.

This is the remainder of the post.

6:24:02 PM  Permalink      

rssTruncate second test. No [read more] link after this post, all is included in the first paragraph.

6:22:28 PM  Permalink      

First rssTruncating test. There should be a more link after this test

This is the remainder of the post.

6:17:44 PM  Permalink      

April 2002
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30        
Mar   May

last updated: 3/20/04; 5:22:15 PM.