From ed8953716496354561218cdaf10153a8a4f4259d Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 29 Oct 2009 07:50:53 -0400 Subject: fix dangling TMPL_IF noticed by rodyaj --- doc/tips/parentlinks_style.mdwn | 1 + 1 file changed, 1 insertion(+) (limited to 'doc/tips/parentlinks_style.mdwn') diff --git a/doc/tips/parentlinks_style.mdwn b/doc/tips/parentlinks_style.mdwn index 5294e5452..b10d7cf56 100644 --- a/doc/tips/parentlinks_style.mdwn +++ b/doc/tips/parentlinks_style.mdwn @@ -77,6 +77,7 @@ following lines in `page.tmpl`: " class="height"> / + Then write the appropriate CSS bits for `a.height1`, etc. -- cgit v1.2.3 From 341e5cec5912fd593c0d0836efccf13344488ee2 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 29 Oct 2009 07:57:30 -0400 Subject: fix indentation --- doc/tips/parentlinks_style.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/tips/parentlinks_style.mdwn') diff --git a/doc/tips/parentlinks_style.mdwn b/doc/tips/parentlinks_style.mdwn index b10d7cf56..b992a11a0 100644 --- a/doc/tips/parentlinks_style.mdwn +++ b/doc/tips/parentlinks_style.mdwn @@ -77,7 +77,7 @@ following lines in `page.tmpl`: " class="height"> / - + Then write the appropriate CSS bits for `a.height1`, etc. -- cgit v1.2.3 From c4784a437d82c2c7747ffc600ac54355130b2ac0 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 29 Oct 2009 10:32:02 -0400 Subject: add an example of how to use the recently added HAS_PARENTLINKS --- doc/tips/parentlinks_style.mdwn | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'doc/tips/parentlinks_style.mdwn') diff --git a/doc/tips/parentlinks_style.mdwn b/doc/tips/parentlinks_style.mdwn index b992a11a0..8b95cd396 100644 --- a/doc/tips/parentlinks_style.mdwn +++ b/doc/tips/parentlinks_style.mdwn @@ -82,6 +82,24 @@ following lines in `page.tmpl`: Then write the appropriate CSS bits for `a.height1`, etc. +Avoid showing title of toplevel index page +------------------------------------------ + +If you don't like having "index" appear on the top page of the wiki, +but you do want to see the name of the page otherwise, you can use a +special `HAS_PARENTLINKS` template variable that the plugin provides. +It is true for every page *except* the toplevel index. + +Here is an example of using it to hide the title of the toplevel index +page: + + + / + + + + + Full-blown example ------------------ -- cgit v1.2.3 From a596e6195cde3a1af5d236a5f6c24ebfd56d9e0a Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 8 Nov 2009 18:30:12 -0500 Subject: add sublevels to toc --- doc/tips/parentlinks_style.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/tips/parentlinks_style.mdwn') diff --git a/doc/tips/parentlinks_style.mdwn b/doc/tips/parentlinks_style.mdwn index 8b95cd396..f9dfa8f55 100644 --- a/doc/tips/parentlinks_style.mdwn +++ b/doc/tips/parentlinks_style.mdwn @@ -6,7 +6,7 @@ a subset of a page's parents. It also provides a few bonus possibilities, such as styling the parent links depending on their place in the path. -[[!toc ]] +[[!toc levels=2]] Content ======= -- cgit v1.2.3