* Title metadata of inlined pages now shows up in blogs, although not yet
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sun, 30 Jul 2006 23:51:48 +0000 (23:51 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sun, 30 Jul 2006 23:51:48 +0000 (23:51 +0000)
  in their rss feeds.

IkiWiki/Plugin/inline.pm
debian/changelog
doc/bugs/meta_inline.mdwn
doc/todo/aggregation.mdwn
templates/inlinepage.tmpl
templates/inlinepagetitle.tmpl

index 7bb71a436783fe3ca57515fab67e42e39170622a..b06470bfef299dd0accf075ef6103e05893b4b21 100644 (file)
@@ -83,7 +83,12 @@ sub preprocess_inline (@) { #{{{
        );
        
        foreach my $page (@list) {
        );
        
        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(content => get_inline_content($page, $params{page}))
                        if $params{archive} eq "no";
                $template->param(ctime => displaytime($pagectime{$page}));
@@ -172,6 +177,7 @@ sub genrss ($@) { #{{{
 
        $template->param(
                title => $config{wikiname},
 
        $template->param(
                title => $config{wikiname},
+               wikiname => $config{wikiname},
                pageurl => $url,
                items => \@items,
        );
                pageurl => $url,
                items => \@items,
        );
index 26b427333e538b2dba7eb94289666286f1add432..a0989cb7451e3f61aea30d44df213ebacbd34e5d 100644 (file)
@@ -20,8 +20,10 @@ ikiwiki (1.13) UNRELEASED; urgency=low
   * Avoid outputting duplicate meta info.
   * Include title metadata on aggregated posts for capitalised and un-munged
     titles.
   * 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
 
 
 ikiwiki (1.12) unstable; urgency=low
 
index cd3d5ec2b65482a6b02c645d109c30702e2529a2..9ca32a0e86033fdbe21a12e332d2fcbb92c5ed99 100644 (file)
@@ -1,2 +1,4 @@
 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.
 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]]
index 63ee8f13b94567272d9feb956395d8cfb998cd1c..65c4208d60ad627da2f8c9c152cd8ccf7dd84a7a 100644 (file)
@@ -1,5 +1,2 @@
 * Still need to support feed expiry.
 * Need to store page author metadata and include it in the rss feed.
 * 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.
index 0f0c47767b7a6eaa917373614b127c2f9a303886..c2ddff8676805b0756da3232669ad7227ca30146 100644 (file)
@@ -1,5 +1,5 @@
 <div class="inlinepage">
 <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>
 
 
 <TMPL_VAR CONTENT>
 
index 10469f81c089387a3b4fd083554fab81253939d9..3aa6a2415b9cff23b20ebca0a82edf547260e470 100644 (file)
@@ -1,5 +1,5 @@
 <p>
 <p>
-<TMPL_VAR PAGELINK><br />
+<a href="<TMPL_VAR PAGEURL>"><TMPL_VAR TITLE></a><br />
 <i>
 Posted <TMPL_VAR CTIME>
 </i>
 <i>
 Posted <TMPL_VAR CTIME>
 </i>