in their rss feeds.
);
foreach my $page (@list) {
- $template->param(pagelink => htmllink($params{page}, $params{page}, $page));
+ # Don't use htmllink because this way the title is separate
+ # and can be overridden by other plugins.
+ my $link=htmlpage(bestlink($params{page}, $page));
+ $link=abs2rel($link, dirname($params{page}));
+ $template->param(pageurl => $link);
+ $template->param(title => $page);
$template->param(content => get_inline_content($page, $params{page}))
if $params{archive} eq "no";
$template->param(ctime => displaytime($pagectime{$page}));
$template->param(
title => $config{wikiname},
+ wikiname => $config{wikiname},
pageurl => $url,
items => \@items,
);
* Avoid outputting duplicate meta info.
* Include title metadata on aggregated posts for capitalised and un-munged
titles.
+ * Title metadata of inlined pages now shows up in blogs, although not yet
+ in their rss feeds.
- -- Joey Hess <joeyh@debian.org> Sun, 30 Jul 2006 18:17:28 -0400
+ -- Joey Hess <joeyh@debian.org> Sun, 30 Jul 2006 19:22:11 -0400
ikiwiki (1.12) unstable; urgency=low
The meta plugin doesn't affect a page if it's being inlined. Probably
setting the title with it should override the title of the blog post.
+
+[[bugs/done]]
* Still need to support feed expiry.
* Need to store page author metadata and include it in the rss feed.
-* Should store the real page title (capitalised) as metadats.
- Only problem is titles that contain quotes need to be escaped somehow,
- and I'll need to add support for that first.
<div class="inlinepage">
-<span class="header"><TMPL_VAR PAGELINK></span>
+<span class="header"><a href="<TMPL_VAR PAGEURL>"><TMPL_VAR TITLE></a></span>
<TMPL_VAR CONTENT>
<p>
-<TMPL_VAR PAGELINK><br />
+<a href="<TMPL_VAR PAGEURL>"><TMPL_VAR TITLE></a><br />
<i>
Posted <TMPL_VAR CTIME>
</i>