X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/900d428e5f28f6b7f98afd36f3e261b3b89b8033..81aa58e7ca0118fbb6e1b7f53e47f01d260cdbff:/doc/todo/Add_space_before_slash_in_parent_links.mdwn diff --git a/doc/todo/Add_space_before_slash_in_parent_links.mdwn b/doc/todo/Add_space_before_slash_in_parent_links.mdwn index 9eb8e5364..e07ad8ef9 100644 --- a/doc/todo/Add_space_before_slash_in_parent_links.mdwn +++ b/doc/todo/Add_space_before_slash_in_parent_links.mdwn @@ -61,3 +61,96 @@ Patch: + / + +---- + +It's almost implicit in some of the discussion above but this can be achieved locally if you fork your templates directory from ikiwiki's, with an ammendment such as + +

+ → +

+ +This is what I do on my site for example. -- [[Jon]] + +> You don't actually need to fork the whole directory, "only" `page.tmpl` - +> put `templatedir => "/foo/templates"` in your setup file, copy `page.tmpl` +> to that directory, and modify it there. IkiWiki will look in `templatedir` +> first, then fall back to its default templates if any are missing from +> `templatedir`. +> +> (Admittedly, `page.tmpl` is the hardest to maintain a fork of, because it +> tends to change whenever a new plugin is added...) --[[smcv]] + +---- + +Here is a solution which doesn't require people to create their own +`page.tmpl`. The solution uses an HTML list together with CSS to draw the +separator and can therefore be controlled by users. This change also +allows people to control other aspects of how the parentlinks are +displayed. The only drawback is that lynx/w3m don't seem to deal with this +CSS feature, but I don't think it's too bad since the parentlinks will +simply show up as a list. + +> I guess I could live with w3m having a second list at the top. +> +> Does this method look identical in the default theme? What about the +> other themes? Several of them do things with parentlinks css.. --[[Joey]] + +(I see that the other patch changes templates/misc.tmpl and +templates/recentchanges.tmpl for INDEXLINK. I haven't done that but can do +so if [[Joey]] likes this approach.) + +> Those template no longer have the redundant stuff. --[[Joey]] + +--[[tbm]] + + diff --git a/doc/style.css b/doc/style.css + index 35a1331..b726365 100644 + --- a/doc/style.css + +++ b/doc/style.css + @@ -129,6 +129,23 @@ pre { + overflow: auto; + } + + +ul.parentlinks li:after { + +display: marker; + +content: "/ "; + +background: none; + +} + + + +ul.parentlinks li { + +display: inline; + +} + + + +ul.parentlinks + +{ + +padding-left: 0; + +display:inline; + +list-style-type: none; + +} + + + div.recentchanges { + border-style: solid; + border-width: 1px; + diff --git a/templates/page.tmpl b/templates/page.tmpl + index 770ac23..f54493e 100644 + --- a/templates/page.tmpl + +++ b/templates/page.tmpl + @@ -44,11 +44,15 @@ +