gitit2 icon indicating copy to clipboard operation
gitit2 copied to clipboard

Simple titles

Open freiric opened this issue 10 years ago • 3 comments

For subpage myPage in a subdirectory mySubdirectory, the title or link is displayed as mySubdirectory/myPage. We want to display myPage instead.

freiric avatar Apr 29 '15 20:04 freiric

Maybe there should be a config option for this. I can imagine lots of people wanting the directory to be displayed. (Note that in some cases a page may link to foo/bar and baz/bar, and in that case you wouldn't want both to display as "bar".)

jgm avatar Apr 29 '15 20:04 jgm

Hi, I thought that if they still want to display the directory, they could use the extended [directory/bla/blo/mypage](directory/bla/blo/mypage). I have added an boolean option simple_title, which defaults to not displaying the directory (If you think more users want the other behaviour as default I can change this default)

freiric avatar May 01 '15 19:05 freiric

Sorry for not replying earlier. I'm at debconf right now and start to come into gitit2 hacking again.

I'd like to avoid to let the complexitiy of gitit2 explode. More so as gitit2 is still in an alpha stage and I expect it to still change a lot.

I'd rather see a possibility to add plugins so that gitit2 itself would not need to provide options for each and every use case. I'll try to come up with a solution but wanted to write you my initial thought early

thkoch2001 avatar Aug 12 '15 14:08 thkoch2001