Photos
Blog
Projects
vanrenterghem.biz
projects
/
git.ikiwiki.info.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
formatting
[git.ikiwiki.info.git]
/
doc
/
todo
/
using_meta_titles_for_parentlinks.html
diff --git
a/doc/todo/using_meta_titles_for_parentlinks.html
b/doc/todo/using_meta_titles_for_parentlinks.html
index dad1314be8d4cdb3b3c6e00b33783ba429ddcf74..6da40a415156352b8425124b7e95b3016c83d1e0 100644
(file)
--- 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
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.
<ul>
<li> I give pagetitle the full path to a page.
<ul>
<li> I give pagetitle the full path to a page.
@@
-80,16
+80,14
@@
diff -c /usr/share/perl5/IkiWiki/Plugin/meta.pm.distrib /usr/share/perl5/IkiWiki
***************
*** 289,294 ****
***************
*** 289,294 ****
---- 290,3
23
----
+--- 290,3
19
----
}
}
- }
#}}}
+ }
-+ sub IkiWiki::pagetitle ($;$) {
#{{{
++ sub IkiWiki::pagetitle ($;$) {
+ my $page=shift;
+ my $unescaped=shift;
+
+ my $page=shift;
+ my $unescaped=shift;
+
-+ print "debug1: $page\n";
-+
+ if ($page =~ m#/#) {
+ $page =~ s#^/##;
+ $page =~ s#/index$##;
+ if ($page =~ m#/#) {
+ $page =~ s#^/##;
+ $page =~ s#/index$##;
@@
-107,14
+105,18
@@
diff -c /usr/share/perl5/IkiWiki/Plugin/meta.pm.distrib /usr/share/perl5/IkiWiki
+ $page=~s/(__(\d+)__|_)/$1 eq '_' ? ' ' : "&#$2;"/eg;
+ }
+
+ $page=~s/(__(\d+)__|_)/$1 eq '_' ? ' ' : "&#$2;"/eg;
+ }
+
-+ print "debug2: $page\n";
-+
+ return $page;
+ return $page;
-+ }
#}}}
++ }
+
package IkiWiki::PageSpec;
+
package IkiWiki::PageSpec;
- sub match_title ($$;@) {
#{{{
+ sub match_title ($$;@) {
</pre>
</pre>
+
+<p>
+This is actually a duplicate for
+[[bugs/pagetitle_function_does_not_respect_meta_titles]], where I'm
+following up a bit. --[[intrigeri]]
+</p>
\ No newline at end of file