X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/c5093abddf8cdf583720b099701ff3da5794595d..95ab2253afe7cf673568762d2ceb74f0fe043067:/doc/todo/using_meta_titles_for_parentlinks.html?ds=sidebyside
diff --git a/doc/todo/using_meta_titles_for_parentlinks.html b/doc/todo/using_meta_titles_for_parentlinks.html
index dad1314be..651b7fa0f 100644
--- a/doc/todo/using_meta_titles_for_parentlinks.html
+++ b/doc/todo/using_meta_titles_for_parentlinks.html
@@ -1,5 +1,5 @@
It is possible to set a Page-Title in the meta-plugin, but that one isn't
-reused in parentlinks. This patch may fix it.
+reused in parentlinks. This [[patch]] may fix it.
- I give pagetitle the full path to a page.
@@ -80,7 +80,7 @@ diff -c /usr/share/perl5/IkiWiki/Plugin/meta.pm.distrib /usr/share/perl5/IkiWiki
***************
*** 289,294 ****
---- 290,323 ----
+--- 290,319 ----
}
} #}}}
@@ -88,8 +88,6 @@ diff -c /usr/share/perl5/IkiWiki/Plugin/meta.pm.distrib /usr/share/perl5/IkiWiki
+ my $page=shift;
+ my $unescaped=shift;
+
-+ print "debug1: $page\n";
-+
+ if ($page =~ m#/#) {
+ $page =~ s#^/##;
+ $page =~ s#/index$##;
@@ -107,8 +105,6 @@ diff -c /usr/share/perl5/IkiWiki/Plugin/meta.pm.distrib /usr/share/perl5/IkiWiki
+ $page=~s/(__(\d+)__|_)/$1 eq '_' ? ' ' : "$2;"/eg;
+ }
+
-+ print "debug2: $page\n";
-+
+ return $page;
+ } #}}}
+