1 Here I propose an option (with a [[patch]]) to capitalize the first letter (ucfirst) of default titles : filenames and urls can be lowercase but title are displayed with a capital first character (filename = "foo.mdwn", pagetitle = "Foo"). Note that \[[!meta title]] are unaffected (no automatic capitalization). Comments please :) --[[JeanPrivat]]
3 diff --git a/IkiWiki.pm b/IkiWiki.pm
4 index 6da2819..fd36ec4 100644
7 @@ -281,6 +281,13 @@ sub getsetup () {
14 + description => "capitalize the first letter of page titles",
21 @@ -989,6 +996,10 @@ sub pagetitle ($;$) {
22 $page=~s/(__(\d+)__|_)/$1 eq '_' ? ' ' : "&#$2;"/eg;
25 + if ($config{capitalize}) {
26 + $page = ucfirst $page;