improve description field for rss
parent
ca366fc902
commit
801a6d61b9
|
@ -171,7 +171,7 @@ sub genrss ($$$) { #{{{
|
||||||
);
|
);
|
||||||
|
|
||||||
$template->param(
|
$template->param(
|
||||||
title => pagetitle(basename($page)),
|
title => $config{wikiname},
|
||||||
pageurl => $url,
|
pageurl => $url,
|
||||||
items => \@items,
|
items => \@items,
|
||||||
);
|
);
|
||||||
|
|
|
@ -64,15 +64,7 @@ renered, so maybe that won't be a plugin.
|
||||||
## blogging and rss
|
## blogging and rss
|
||||||
|
|
||||||
The wiki should emit rss feeds for pages. The simple case is a regular
|
The wiki should emit rss feeds for pages. The simple case is a regular
|
||||||
page. The complex case is a blog composed of multiple pages.
|
page (done). The complex case is a blog composed of multiple pages.
|
||||||
|
|
||||||
### single page
|
|
||||||
|
|
||||||
Just create an rss feed with one element, that contains the last diff to
|
|
||||||
the page, or the contents of the page, or something like that. Whenever the
|
|
||||||
page is changed, rss readers should see the single post in the feed as a
|
|
||||||
new post, so they'll dump out the page again. Simple, allows subscribing to
|
|
||||||
any page as an RSS feed if you want to see just changes to that page.
|
|
||||||
|
|
||||||
### multi-page blog
|
### multi-page blog
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<channel>
|
<channel>
|
||||||
<title><TMPL_VAR TITLE ESCAPE=HTML></title>
|
<title><TMPL_VAR TITLE ESCAPE=HTML></title>
|
||||||
<link><TMPL_VAR PAGEURL></link>
|
<link><TMPL_VAR PAGEURL></link>
|
||||||
<description><TMPL_VAR TITLE ESCAPE=HTML></description>
|
<description><TMPL_VAR WIKINAME ESCAPE=HTML></description>
|
||||||
<TMPL_LOOP NAME="ITEMS">
|
<TMPL_LOOP NAME="ITEMS">
|
||||||
<item>
|
<item>
|
||||||
<title><TMPL_VAR ITEMTITLE ESCAPE=HTML></title>
|
<title><TMPL_VAR ITEMTITLE ESCAPE=HTML></title>
|
||||||
|
|
Loading…
Reference in New Issue