rss

changeset 128:3f916e842f6c trunk tip

updated for changes to blog
author Thomas Jollans <thomas@jollans.com>
date Tue Aug 21 17:20:33 2007 +0200 (2007-08-21)
parents ed810616f91a
children
files templates/rss/blog.atpl
line diff
     1.1 --- a/templates/rss/blog.atpl	Fri Aug 03 00:17:05 2007 +0200
     1.2 +++ b/templates/rss/blog.atpl	Tue Aug 21 17:20:33 2007 +0200
     1.3 @@ -7,11 +7,13 @@
     1.4  	>
     1.5  <channel>
     1.6  
     1.7 +$(begin if tagname)$(begin set name)${tagname}$(end)$(end)
     1.8  $(begin if name)$(comment feed for a blog or tag)
     1.9      <title>${name}</title>
    1.10      <description>${name}</description>
    1.11      <link>${afoc:uri}</link>
    1.12      $(begin repeat linked)$(begin if type=blog:post)
    1.13 +    $(begin tag_if state published)
    1.14      <item>
    1.15          <title>${subject}</title>
    1.16          <link>$(re_sub afoc:uri "(.*/)[^/]*$" \\1)${addr}</link>
    1.17 @@ -25,13 +27,14 @@
    1.18          </description>
    1.19          <pubDate>${rfc_date}</pubDate>
    1.20          <dc:creator>${uname}</dc:creator>
    1.21 -        $(begin repeat tags)<category>${name}</category>$(end)
    1.22 +        $(begin repeat tags)<category>${tagname}</category>$(end)
    1.23          <content:encoded><![CDATA[
    1.24              ${post}]]>
    1.25          </content:encoded>
    1.26          <wfw:commentRSS>$(re_sub afoc:uri "(.*/)[^/]*$" \\1)${addr}?theme.theme=rss</wfw:commentRSS>
    1.27      </item>
    1.28 -    $(end)$(end)
    1.29 +    $(end if published)
    1.30 +    $(end if its a post)$(end repeat them linked ones)
    1.31  $(end if name)
    1.32  $(begin else)$(comment feed for a post and its comments)
    1.33  $(begin repeat linked)
    1.34 @@ -43,6 +46,7 @@
    1.35      </description>
    1.36      <link>${afoc:uri}</link>
    1.37      $(begin repeat linked)
    1.38 +    $(begin tag_if state published)
    1.39      <item>
    1.40          <title>${subject}</title>
    1.41          <link>${afoc:uri}#nd${_id}</link>
    1.42 @@ -60,6 +64,7 @@
    1.43          </content:encoded>
    1.44      </item>
    1.45      $(end)
    1.46 +    $(end)
    1.47  $(end rpt)
    1.48  $(end else)
    1.49  </channel>