#filter WebSafe
$post.excerpt
<p><a href="$post.URL">Read more</a>&hellip;</p>
#filter WebSafe
$post.excerpt
<p><a href="$post.URL">Read more</a>&hellip;</p>
</summary>
#end if
#if $post.content
<content type="html" mode="escaped">
#filter WebSafe
$post.content
</summary>
#end if
#if $post.content
<content type="html" mode="escaped">
#filter WebSafe
$post.content
</content>
#end if
#for $c in $post.categoryList
</content>
#end if
#for $c in $post.categoryList
class phd_pp(Template):
def __init__(self, *args, **kw):
class phd_pp(Template):
def __init__(self, *args, **kw):
+ if not hasattr(self, "_fileBaseName"):
+ self._fileDirName, self._fileBaseName = os.path.split(os.path.abspath(self._CHEETAH_src))
Template.__init__(self, *args, **kw)
directories = self._fileDirName.split('/')[full_dirs:] # remove directories up to "./files"
dirs_to_root = len(directories)
Template.__init__(self, *args, **kw)
directories = self._fileDirName.split('/')[full_dirs:] # remove directories up to "./files"
dirs_to_root = len(directories)
#elif $post.content
$post.content
#end if
#elif $post.content
$post.content
#end if
</description>
#end if
<pubDate>${post.rfc822_date}</pubDate>
</description>
#end if
<pubDate>${post.rfc822_date}</pubDate>