docs: improve hidden page examples

This commit is contained in:
Sören Weber 2021-08-26 20:54:31 +02:00
parent d04bbaad4e
commit da9be46f31
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589
15 changed files with 41 additions and 35 deletions

View file

@ -33,10 +33,10 @@ Use the children shortcode to list the child pages of a page and the further des
{{%children description="true" %}} {{%children description="true" %}}
````go ````go
{{%/* children depth="3" showhidden="true" */%}} {{%/* children depth="999" showhidden="true" */%}}
```` ````
{{% children depth="3" showhidden="true" %}} {{% children depth="999" showhidden="true" %}}
````go ````go
{{%/* children containerstyle="div" style="h2" depth="3" description="true" */%}} {{%/* children containerstyle="div" style="h2" depth="3" description="true" */%}}

View file

@ -4,4 +4,4 @@ description = "This is a demo child page"
title = "page 1" title = "page 1"
+++ +++
This is a demo child page This is a demo child page.

View file

@ -1,6 +1,8 @@
+++ +++
alwaysopen = false
description = "This is a demo child page" description = "This is a demo child page"
title = "page 1-1" title = "page 1-1"
+++ +++
This is a demo child page This is a demo child page with a hidden child. You can still access the hidden child [directly]({{% relref "shortcodes/children/children-1/children-1-1/children-1-1-1" %}}) or via the search.

View file

@ -1,6 +1,7 @@
+++ +++
description = "This is a demo child page" description = "This is a hidden demo child page"
title = "page 1-1-1" hidden = true
title = "page 1-1-1 (hidden)"
+++ +++
This is a demo child page This is a **hidden** demo child page. This page and all its children are hidden in the menu, arrow navigation and children shortcode as long as you aren't viewing this page or its children directly.

View file

@ -1,6 +1,6 @@
+++ +++
description = "This is a demo child page" description = "This is a non-hidden demo child page of a hidden parent page"
title = "page 1-1-1-1" title = "page 1-1-1-1"
+++ +++
This is a demo child page This is a **non-hidden** demo child page of a hidden parent page with a hidden child. You can still access the hidden child [directly]({{% relref "shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/children-1-1-1-1-1" %}}) or via the search.

View file

@ -1,6 +1,7 @@
+++ +++
description = "This is a demo child page" description = "This is a hidden demo child page"
title = "page 1-1-1-1-1" hidden = true
title = "page 1-1-1-1-1 (hidden)"
+++ +++
This is a demo child page This is a **hidden** demo child page. This page and all its children are hidden in the menu, arrow navigation and children shortcode as long as you aren't viewing this page or its children directly.

View file

@ -0,0 +1,6 @@
+++
description = "This is a non-hidden demo child page of a hidden parent page"
title = "page 1-1-1-1-1-1"
+++
This is a **non-hidden** demo child page of a hidden parent page.

View file

@ -1,6 +1,6 @@
+++ +++
description = "This is a demo child page" description = "This is a non-hidden demo child page of a hidden parent page"
title = "page 1-1-2" title = "page 1-1-2"
+++ +++
This is a demo child page This is a **non-hidden** demo child page of a hidden parent page.

View file

@ -1,6 +1,6 @@
+++ +++
description = "This is a demo child page" description = "This is a non-hidden demo child page of a hidden parent page"
title = "page 1-1-2-1" title = "page 1-1-2-1"
+++ +++
This is a demo child page This is a **non-hidden** demo child page of a hidden parent page.

View file

@ -1,6 +1,6 @@
+++ +++
description = "This is a demo child page" description = "This is a non-hidden demo child page of a hidden parent page"
title = "page 1-1-2-2" title = "page 1-1-2-2"
+++ +++
This is a demo child page This is a **non-hidden** demo child page of a hidden parent page.

View file

@ -1,12 +1,8 @@
+++ +++
alwaysopen = false alwaysopen = false
description = ""
title = "page 2" title = "page 2"
+++ +++
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod This is a demo child page with no description.
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo So its content is used as description.
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

View file

@ -1,6 +1,6 @@
+++ +++
description = "This is a page test" description = "This is a plain page test nested in a parent"
title = "page test 3" title = "plain page test nested"
+++ +++
This is a test 3 demo child page This is a plain demo child page.

View file

@ -4,4 +4,4 @@ description = "This is a demo child page"
title = "page 3" title = "page 3"
+++ +++
This is a demo child page, not displayed in the menu This is a demo child page.

View file

@ -1,8 +1,8 @@
+++ +++
alwaysopen = false alwaysopen = false
description = "This is a demo child page" description = "This is a hidden demo child page"
hidden = true hidden = true
title = "page 4" title = "page 4 (hidden)"
+++ +++
This is a demo child page, not displayed in the menu This is a **hidden** demo child page. This page and all its children are hidden in the menu, arrow navigation and children shortcode as long as you aren't viewing this page or its children directly.

View file

@ -1,6 +1,6 @@
+++ +++
description = "This is a page test" description = "This is a plain page test"
title = "page test" title = "plain page test"
+++ +++
This is a test demo child page This is a plain demo child page.