aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-07-31 01:05:22 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-07-31 01:05:22 +0000
commit2604c3217eba299c181868de418880c38e93a24d (patch)
tree35d48af5dee082ccf0e502c086f4e1e81e7671e0
parent953ffa1fe31ab97caf3b1bcc5840e62728620833 (diff)
downloadikiwiki-2604c3217eba299c181868de418880c38e93a24d.tar
ikiwiki-2604c3217eba299c181868de418880c38e93a24d.tar.gz
one more change; use the page that pulls in a feed as the anchor for the
default directory
-rw-r--r--IkiWiki/Plugin/aggregate.pm2
-rw-r--r--doc/todo/aggregation.mdwn3
2 files changed, 4 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm
index 14461059d..7142e6106 100644
--- a/IkiWiki/Plugin/aggregate.pm
+++ b/IkiWiki/Plugin/aggregate.pm
@@ -70,7 +70,7 @@ sub preprocess (@) { #{{{
$feed->{name}=$name;
$feed->{sourcepage}=$params{page};
$feed->{url}=$params{url};
- my $dir=exists $params{dir} ? $params{dir} : "feed/".IkiWiki::titlepage($params{name});
+ my $dir=exists $params{dir} ? $params{dir} : $params{page}."/".IkiWiki::titlepage($params{name});
$dir=~s/^\/+//;
($dir)=$dir=~/$IkiWiki::config{wiki_file_regexp}/;
$feed->{dir}=$dir;
diff --git a/doc/todo/aggregation.mdwn b/doc/todo/aggregation.mdwn
index 65c4208d6..d56e41e04 100644
--- a/doc/todo/aggregation.mdwn
+++ b/doc/todo/aggregation.mdwn
@@ -1,2 +1,5 @@
* Still need to support feed expiry.
* Need to store page author metadata and include it in the rss feed.
+* Some rss feeds contain relative links or relative urls to inline images,
+ which break when aggregated. Do I need to parse the html and make them
+ all absolute?