projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ecd74fb
)
* Title metadata of inlined pages now shows up in blogs, although not yet
author
joey
<joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sun, 30 Jul 2006 23:51:48 +0000
(23:51 +0000)
committer
joey
<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
patch
|
blob
|
history
debian/changelog
patch
|
blob
|
history
doc/bugs/meta_inline.mdwn
patch
|
blob
|
history
doc/todo/aggregation.mdwn
patch
|
blob
|
history
templates/inlinepage.tmpl
patch
|
blob
|
history
templates/inlinepagetitle.tmpl
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/inline.pm
b/IkiWiki/Plugin/inline.pm
index 7bb71a436783fe3ca57515fab67e42e39170622a..b06470bfef299dd0accf075ef6103e05893b4b21 100644
(file)
--- a/
IkiWiki/Plugin/inline.pm
+++ b/
IkiWiki/Plugin/inline.pm
@@
-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,
);
diff --git
a/debian/changelog
b/debian/changelog
index 26b427333e538b2dba7eb94289666286f1add432..a0989cb7451e3f61aea30d44df213ebacbd34e5d 100644
(file)
--- a/
debian/changelog
+++ b/
debian/changelog
@@
-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 1
8:17:28
-0400
+ -- Joey Hess <joeyh@debian.org> Sun, 30 Jul 2006 1
9:22:11
-0400
ikiwiki (1.12) unstable; urgency=low
ikiwiki (1.12) unstable; urgency=low
diff --git
a/doc/bugs/meta_inline.mdwn
b/doc/bugs/meta_inline.mdwn
index cd3d5ec2b65482a6b02c645d109c30702e2529a2..9ca32a0e86033fdbe21a12e332d2fcbb92c5ed99 100644
(file)
--- a/
doc/bugs/meta_inline.mdwn
+++ b/
doc/bugs/meta_inline.mdwn
@@
-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]]
diff --git
a/doc/todo/aggregation.mdwn
b/doc/todo/aggregation.mdwn
index 63ee8f13b94567272d9feb956395d8cfb998cd1c..65c4208d60ad627da2f8c9c152cd8ccf7dd84a7a 100644
(file)
--- a/
doc/todo/aggregation.mdwn
+++ b/
doc/todo/aggregation.mdwn
@@
-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.
diff --git
a/templates/inlinepage.tmpl
b/templates/inlinepage.tmpl
index 0f0c47767b7a6eaa917373614b127c2f9a303886..c2ddff8676805b0756da3232669ad7227ca30146 100644
(file)
--- a/
templates/inlinepage.tmpl
+++ b/
templates/inlinepage.tmpl
@@
-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>
diff --git
a/templates/inlinepagetitle.tmpl
b/templates/inlinepagetitle.tmpl
index 10469f81c089387a3b4fd083554fab81253939d9..3aa6a2415b9cff23b20ebca0a82edf547260e470 100644
(file)
--- a/
templates/inlinepagetitle.tmpl
+++ b/
templates/inlinepagetitle.tmpl
@@
-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>