if (! exists $params{show} && $params{archive} eq "no") {
$params{show}=10;
}
+ if (! exists $params{rss}) {
+ $params{rss}="yes";
+ }
# Avoid nested inlines, to avoid loops etc.
if ($processing_inline) {
}
$ret.=$formtemplate->output;
}
- elsif ($config{rss}) {
+ elsif ($config{rss} && $params{rss} eq "yes")) {
# Add a rss link button.
my $linktemplate=template("rsslink.tmpl", blind_cache => 1);
$linktemplate->param(rssurl => rsspage(basename($params{page})));
# TODO: should really add this to renderedfiles and call
# check_overwrite, but currently renderedfiles
# only supports listing one file per page.
- if ($config{rss}) {
+ if ($config{rss} && $params{rss} eq "yes") {
writefile(rsspage($params{page}), $config{destdir},
genrss($params{page}, @list));
$toping{$params{page}}=1 unless $config{rebuild};
[[SubPage]] of "blog") will be part of the blog, and the newest 10
of them will appear in the page.
-The optional `rootpage` setting tells the wiki that new posts to this blog
+The optional `rootpage` parameter tells the wiki that new posts to this blog
should default to being [[SubPage]]s of "blog", and enables a form at the
top of the blog that can be used to add new items.
+There is also an optional `rss` parameter that can control whether an RSS
+feed is generated. The default is to generate an RSS feed, if the wiki is
+globally configured to do so, but you can set `rss=no` to disable this.
+
If you want your blog to have an archive page listing every post ever made
to it, you can accomplish that like this:
given type.
* Add a savestate hook.
* Don't put blog post forms on pages if there's no cgiurl set.
- * Reformat front page.
* --setup --refresh no longer rebuilds wrappers. Use --setup --refresh
--wrappers to do that.
* Add %IkiWiki::forcerebuild to provide a way for plugins like aggregate
* Title metadata of inlined pages now shows up in blogs and rss feeds.
* Fix issue with unicode filenames and updating the hyper estradier search
index. (Aka Please Please Please, let that be the last one.)
+ * Patch from Roland Mas to support an rss=no parameter to inline directives.
+ Closes: #380743
- -- Joey Hess <joeyh@debian.org> Sun, 30 Jul 2006 21:18:16 -0400
+ -- Joey Hess <joeyh@debian.org> Tue, 1 Aug 2006 16:00:58 -0400
ikiwiki (1.12) unstable; urgency=low
# Full list of open bugs:
-[[inline pages="bugs/* !bugs/done !link(bugs/done) !*/Discussion" archive="yes"]]
+[[inline pages="bugs/* !bugs/done !link(bugs/done) !*/Discussion" archive="yes" rss="no"]]
# Full list of open items:
-[[inline pages="todo/* !todo/done !link(todo/done) !*/Discussion" archive="yes"]]
+[[inline pages="todo/* !todo/done !link(todo/done) !*/Discussion" archive="yes" rss="no"]]