mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 09:43:06 +00:00
docs: improve hidden page examples
This commit is contained in:
parent
d04bbaad4e
commit
da9be46f31
15 changed files with 41 additions and 35 deletions
|
@ -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" */%}}
|
||||||
|
|
|
@ -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.
|
|
@ -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.
|
|
@ -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.
|
|
@ -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.
|
|
@ -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.
|
|
@ -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.
|
|
@ -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.
|
|
@ -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.
|
|
@ -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.
|
|
@ -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.
|
|
|
@ -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.
|
|
@ -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.
|
|
@ -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.
|
|
@ -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.
|
Loading…
Reference in a new issue