BlogMax: Blogging in Emacs
A great way to maintain a blog





    BlogMax is an Emacs package that aids in the creation of a weblog. News below. See the Docs page for details.

Improving RSS

Tuesday, October 8, 2002

I've been using amphetaDesk to scan RSS channels. The RSS that BlogMax generates looks funny there. The main link appears twice. I've been thinking about some ideas to improve the RSS and get rid of the need to use <br> tags for paragraph breaks within an entry. I think I know what to do now.

I'll add two new macros, {story link title name} and {/story}. The RSS generation will include only the text between the two new macros (using the old algorithm for backward compatibility on pages that contain no instance of the {story} macro).

{story link title name} will expand into:

<!--story--><a href=link name=name>title</a>
{/story} will expand into:
The weblog-insert-story-tags command, likely bound to <Ctrl><Shift>-S, will insert:
{story ...}{/story}
using the clipboard as the "link", auto-generating the "name" as one more than the largest integer already used in the file, and putting the cursor between the two quotes of a blank "title". RSS generation will then be done on the generated HTML file, finding the <!--story--> and <!--/story--> comments and pulling the link and title out of the generated anchor tag.


October 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 31
Sep  Nov


emacs Copyright © 2002 by Bill St. Clair <> source