Here's the updated Atom template I created for blojsom 2.31
and lower.
Just replace the atom.vm in your templates directory with
this one. It
validates using the feed validator at feedvalidator.org. As
it turns
out, the <published> tag is optional, so because the
older blojsoms
don't track the creation date I just left it out.
Eric
---------------------- atom.vm
-------------------------------
<?xml version="1.0"
encoding="utf-8"?>
<feed xmlns="http://www.w3.o
rg/2005/Atom">
<title
type="html">#EscapedBlogName()</title>
<subtitle type="html">
#EscapedBlogDescription()
</subtitle>
<updated>$BLOJSOM_DATE_ISO8601</updated>
<id>#BlogURL()</id>
<link rel="alternate"
type="text/html"
hreflang="#BlogLanguage()"
href="#BlogURL()"/>
<link rel="self"
type="application/atom+xml"
href="#BlogURL()?flavor=atom"/>
<icon>#BlogBaseURL()/favicon.ico</icon>
<rights>Copyright (c) #BlogOwner()</rights>
<generator uri="http://blojsom.sf.net&quo
t; version="$BLOJSOM_VERSION">
$BLOJSOM_VERSION
</generator>
#foreach ($entry in $BLOJSOM_ENTRIES)
<entry>
#FriendlyPermalink($entry)
<title>$entry.getTitle()</title>
<link rel="alternate"
type="text/html" href="$entryLink"/>
<id>$entryLink</id>
<updated>$entry.getISO8601Date()</updated>
<author>
<name>#Author($entry)</name>
<uri>#BlogURL()</uri>
<email>$BLOJSOM_BLOG.getAuthorizedUserEmail($entry.get
MetaData().get('blog-entry-author'))</email>
</author>
<content type="html"
xml:lang="#BlogLanguage()"
xml:base="#BlogURL()">
$entry.getEscapedDescription()
#if
($entry.getMetaData().get("TECHNORATI_TAG_LINKS"))
#set($technoratiTags =
$entry.getMetaData().get("TECHNORATI_TAG_LINKS"))
<p
style="text-align:right;font-size:10px;">Te
chnorati Tags:
#foreach($technoratiTag in $technoratiTags)
$BLOJSOM_PLUGIN_STRING_UTILITIES.escapeString($technoratiTag
)
#end
</p>
#end
</content>
</entry>
#end
</feed>
-------------------- end atom.vm
--------------------------------
------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief surveys -
and earn cash
http://www.techsay.com/default.php?page=join
.php&p=sourceforge&CID=DEVDEV_______________________
________________________
Blojsom-users mailing list
Blojsom-users lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
|