hidden pages: remove from taxonomy #102

This commit is contained in:
Sören Weber 2021-09-24 06:59:28 +02:00
parent ddf9bc6626
commit 5d98f7d31f
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589
30 changed files with 32 additions and 2 deletions

View file

@ -31,6 +31,8 @@ Note that some of these parameters are explained in details in other sections of
disableSearchHiddenPages = false
# Disables hidden pages from showing up in the sitemap and on Google (et all), otherwise they may be indexed by search engines
disableSeoHiddenPages = false
# Disables hidden pages from showing up on the tags page although the tag term will be displayed even if all pages are hidden
disableTagHiddenPages = false
# Javascript and CSS cache are automatically busted when new version of site is generated.
# Set this to true to disable this behavior (some proxies don't handle well this optimization)
disableAssetsBusting = false

View file

@ -1,6 +1,7 @@
+++
alwaysopen = false
description = "This is a demo child page"
tags = ["children", "non-hidden"]
title = "page 1"
weight = 10
+++

View file

@ -1,6 +1,7 @@
+++
alwaysopen = false
descrption = "This be a demo child plank"
tags = ["children", "non-hidden"]
title = "Plank 1"
weight = 10
+++

View file

@ -1,8 +1,8 @@
+++
alwaysopen = false
description = "This is a demo child page"
tags = ["children", "non-hidden"]
title = "page 1-1"
+++
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,7 +1,7 @@
+++
alwaysopen = false
descrption = "This be a demo child plank"
tags = ["children", "non-hidden"]
title = "Plank 1-1"
+++
{{< piratify >}}

View file

@ -1,6 +1,7 @@
+++
description = "This is a hidden demo child page"
hidden = true
tags = ["children", "hidden"]
title = "page 1-1-1 (hidden)"
+++

View file

@ -1,6 +1,7 @@
+++
descrption = "This be a hidden demo child plank"
hidden = true
tags = ["children", "hidden"]
title = "Plank 1-1-1 (hidden)"
+++
{{< piratify >}}

View file

@ -1,5 +1,6 @@
+++
description = "This is a non-hidden demo child page of a hidden parent page"
tags = ["children", "hidden"]
title = "page 1-1-1-1"
+++

View file

@ -1,5 +1,6 @@
+++
descrption = "This be a non-hidden demo child plank o' a hidden parrrent plank"
tags = ["children", "hidden"]
title = "Plank 1-1-1-1"
+++
{{< piratify >}}

View file

@ -1,6 +1,7 @@
+++
description = "This is a hidden demo child page"
hidden = true
tags = ["children", "hidden"]
title = "page 1-1-1-1-1 (hidden)"
+++

View file

@ -1,6 +1,7 @@
+++
descrption = "This be a hidden demo child plank"
hidden = true
tags = ["children", "hidden"]
title = "Plank 1-1-1-1-1 (hidden)"
+++
{{< piratify >}}

View file

@ -1,5 +1,6 @@
+++
description = "This is a non-hidden demo child page of a hidden parent page"
tags = ["children", "hidden"]
title = "page 1-1-1-1-1-1"
+++

View file

@ -1,5 +1,6 @@
+++
descrption = "This be a non-hidden demo child plank on a hidden parrrent plank"
tags = ["children", "hidden"]
title = "Plank 1-1-1-1-1-1"
+++
{{< piratify >}}

View file

@ -1,5 +1,6 @@
+++
description = "This is a demo child page"
tags = ["children", "non-hidden"]
title = "page 1-1-2"
+++

View file

@ -1,5 +1,6 @@
+++
descrption = "This be a demo child plank"
tags = ["children", "non-hidden"]
title = "Plank 1-1-2"
+++
{{< piratify >}}

View file

@ -1,5 +1,6 @@
+++
description = "This is a demo child page"
tags = ["children", "non-hidden"]
title = "page 1-1-2-1"
+++

View file

@ -1,5 +1,6 @@
+++
descrption = "This be a demo child plank"
tags = ["children", "non-hidden"]
title = "Plank 1-1-2-1"
+++
{{< piratify >}}

View file

@ -1,5 +1,6 @@
+++
description = "This is a demo child page"
tags = ["children", "non-hidden"]
title = "page 1-1-2-2"
+++

View file

@ -1,5 +1,6 @@
+++
descrption = "This be a demo child plank"
tags = ["children", "non-hidden"]
title = "Plank 1-1-2-2"
+++
{{< piratify >}}

View file

@ -1,5 +1,6 @@
+++
description = "This is a demo child page"
tags = ["children", "non-hidden"]
title = "page 1-1-3"
+++

View file

@ -1,5 +1,6 @@
+++
descrption = "This be a demo child plank"
tags = ["children", "non-hidden"]
title = "Plank 1-1-3"
+++
{{< piratify >}}

View file

@ -1,5 +1,6 @@
+++
alwaysopen = false
tags = ["children", "non-hidden"]
title = "page 2"
weight = 20
+++

View file

@ -1,5 +1,6 @@
+++
alwaysopen = false
tags = ["children", "non-hidden"]
title = "Plank 2"
weight = 20
+++

View file

@ -1,6 +1,7 @@
+++
alwaysopen = false
description = "This is a demo child page"
tags = ["children", "non-hidden"]
title = "page 3"
weight = 30
+++

View file

@ -1,6 +1,7 @@
+++
alwaysopen = false
descrption = "This be a demo child plank"
tags = ["children", "non-hidden"]
title = "Plank 3"
weight = 30
+++

View file

@ -1,5 +1,6 @@
+++
description = "This is a plain page test nested in a parent"
tags = ["children", "non-hidden"]
title = "page 3-1"
+++

View file

@ -1,5 +1,6 @@
+++
descrption = "This be a plain plank test nested 'n a parrrent"
tags = ["children", "non-hidden"]
title = "Plank 3-1"
+++
{{< piratify >}}

View file

@ -2,6 +2,7 @@
alwaysopen = false
description = "This is a hidden demo child page"
hidden = true
tags = ["children", "hidden"]
title = "page 4 (hidden)"
weight = 40
+++

View file

@ -2,6 +2,7 @@
alwaysopen = false
descrption = "This be a hidden demo child plank"
hidden = true
tags = ["children", "hidden"]
title = "Plank 4 (hidden)"
weight = 40
+++

View file

@ -6,7 +6,9 @@
{{- if or (eq .Kind "taxonomy") (eq .Kind "term") }}
<ul>
{{- range .Pages }}
{{- if and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableTagHiddenPages true) ) }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{- end }}
{{- end }}
</ul>
{{- end }}