mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 15:57:57 +00:00
hidden pages: remove from taxonomy #102
This commit is contained in:
parent
ddf9bc6626
commit
5d98f7d31f
30 changed files with 32 additions and 2 deletions
|
@ -31,6 +31,8 @@ Note that some of these parameters are explained in details in other sections of
|
||||||
disableSearchHiddenPages = false
|
disableSearchHiddenPages = false
|
||||||
# Disables hidden pages from showing up in the sitemap and on Google (et all), otherwise they may be indexed by search engines
|
# Disables hidden pages from showing up in the sitemap and on Google (et all), otherwise they may be indexed by search engines
|
||||||
disableSeoHiddenPages = false
|
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.
|
# 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)
|
# Set this to true to disable this behavior (some proxies don't handle well this optimization)
|
||||||
disableAssetsBusting = false
|
disableAssetsBusting = false
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
+++
|
+++
|
||||||
alwaysopen = false
|
alwaysopen = false
|
||||||
description = "This is a demo child page"
|
description = "This is a demo child page"
|
||||||
|
tags = ["children", "non-hidden"]
|
||||||
title = "page 1"
|
title = "page 1"
|
||||||
weight = 10
|
weight = 10
|
||||||
+++
|
+++
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
+++
|
+++
|
||||||
alwaysopen = false
|
alwaysopen = false
|
||||||
descrption = "This be a demo child plank"
|
descrption = "This be a demo child plank"
|
||||||
|
tags = ["children", "non-hidden"]
|
||||||
title = "Plank 1"
|
title = "Plank 1"
|
||||||
weight = 10
|
weight = 10
|
||||||
+++
|
+++
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
+++
|
+++
|
||||||
alwaysopen = false
|
alwaysopen = false
|
||||||
description = "This is a demo child page"
|
description = "This is a demo child page"
|
||||||
|
tags = ["children", "non-hidden"]
|
||||||
title = "page 1-1"
|
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.
|
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,7 +1,7 @@
|
||||||
+++
|
+++
|
||||||
alwaysopen = false
|
alwaysopen = false
|
||||||
descrption = "This be a demo child plank"
|
descrption = "This be a demo child plank"
|
||||||
|
tags = ["children", "non-hidden"]
|
||||||
title = "Plank 1-1"
|
title = "Plank 1-1"
|
||||||
|
|
||||||
+++
|
+++
|
||||||
{{< piratify >}}
|
{{< piratify >}}
|
|
@ -1,6 +1,7 @@
|
||||||
+++
|
+++
|
||||||
description = "This is a hidden demo child page"
|
description = "This is a hidden demo child page"
|
||||||
hidden = true
|
hidden = true
|
||||||
|
tags = ["children", "hidden"]
|
||||||
title = "page 1-1-1 (hidden)"
|
title = "page 1-1-1 (hidden)"
|
||||||
+++
|
+++
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
+++
|
+++
|
||||||
descrption = "This be a hidden demo child plank"
|
descrption = "This be a hidden demo child plank"
|
||||||
hidden = true
|
hidden = true
|
||||||
|
tags = ["children", "hidden"]
|
||||||
title = "Plank 1-1-1 (hidden)"
|
title = "Plank 1-1-1 (hidden)"
|
||||||
+++
|
+++
|
||||||
{{< piratify >}}
|
{{< piratify >}}
|
|
@ -1,5 +1,6 @@
|
||||||
+++
|
+++
|
||||||
description = "This is a non-hidden demo child page of a hidden parent page"
|
description = "This is a non-hidden demo child page of a hidden parent page"
|
||||||
|
tags = ["children", "hidden"]
|
||||||
title = "page 1-1-1-1"
|
title = "page 1-1-1-1"
|
||||||
+++
|
+++
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
+++
|
+++
|
||||||
descrption = "This be a non-hidden demo child plank o' a hidden parrrent plank"
|
descrption = "This be a non-hidden demo child plank o' a hidden parrrent plank"
|
||||||
|
tags = ["children", "hidden"]
|
||||||
title = "Plank 1-1-1-1"
|
title = "Plank 1-1-1-1"
|
||||||
+++
|
+++
|
||||||
{{< piratify >}}
|
{{< piratify >}}
|
|
@ -1,6 +1,7 @@
|
||||||
+++
|
+++
|
||||||
description = "This is a hidden demo child page"
|
description = "This is a hidden demo child page"
|
||||||
hidden = true
|
hidden = true
|
||||||
|
tags = ["children", "hidden"]
|
||||||
title = "page 1-1-1-1-1 (hidden)"
|
title = "page 1-1-1-1-1 (hidden)"
|
||||||
+++
|
+++
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
+++
|
+++
|
||||||
descrption = "This be a hidden demo child plank"
|
descrption = "This be a hidden demo child plank"
|
||||||
hidden = true
|
hidden = true
|
||||||
|
tags = ["children", "hidden"]
|
||||||
title = "Plank 1-1-1-1-1 (hidden)"
|
title = "Plank 1-1-1-1-1 (hidden)"
|
||||||
+++
|
+++
|
||||||
{{< piratify >}}
|
{{< piratify >}}
|
|
@ -1,5 +1,6 @@
|
||||||
+++
|
+++
|
||||||
description = "This is a non-hidden demo child page of a hidden parent page"
|
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"
|
title = "page 1-1-1-1-1-1"
|
||||||
+++
|
+++
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
+++
|
+++
|
||||||
descrption = "This be a non-hidden demo child plank on a hidden parrrent plank"
|
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"
|
title = "Plank 1-1-1-1-1-1"
|
||||||
+++
|
+++
|
||||||
{{< piratify >}}
|
{{< piratify >}}
|
|
@ -1,5 +1,6 @@
|
||||||
+++
|
+++
|
||||||
description = "This is a demo child page"
|
description = "This is a demo child page"
|
||||||
|
tags = ["children", "non-hidden"]
|
||||||
title = "page 1-1-2"
|
title = "page 1-1-2"
|
||||||
+++
|
+++
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
+++
|
+++
|
||||||
descrption = "This be a demo child plank"
|
descrption = "This be a demo child plank"
|
||||||
|
tags = ["children", "non-hidden"]
|
||||||
title = "Plank 1-1-2"
|
title = "Plank 1-1-2"
|
||||||
+++
|
+++
|
||||||
{{< piratify >}}
|
{{< piratify >}}
|
|
@ -1,5 +1,6 @@
|
||||||
+++
|
+++
|
||||||
description = "This is a demo child page"
|
description = "This is a demo child page"
|
||||||
|
tags = ["children", "non-hidden"]
|
||||||
title = "page 1-1-2-1"
|
title = "page 1-1-2-1"
|
||||||
+++
|
+++
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
+++
|
+++
|
||||||
descrption = "This be a demo child plank"
|
descrption = "This be a demo child plank"
|
||||||
|
tags = ["children", "non-hidden"]
|
||||||
title = "Plank 1-1-2-1"
|
title = "Plank 1-1-2-1"
|
||||||
+++
|
+++
|
||||||
{{< piratify >}}
|
{{< piratify >}}
|
|
@ -1,5 +1,6 @@
|
||||||
+++
|
+++
|
||||||
description = "This is a demo child page"
|
description = "This is a demo child page"
|
||||||
|
tags = ["children", "non-hidden"]
|
||||||
title = "page 1-1-2-2"
|
title = "page 1-1-2-2"
|
||||||
+++
|
+++
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
+++
|
+++
|
||||||
descrption = "This be a demo child plank"
|
descrption = "This be a demo child plank"
|
||||||
|
tags = ["children", "non-hidden"]
|
||||||
title = "Plank 1-1-2-2"
|
title = "Plank 1-1-2-2"
|
||||||
+++
|
+++
|
||||||
{{< piratify >}}
|
{{< piratify >}}
|
|
@ -1,5 +1,6 @@
|
||||||
+++
|
+++
|
||||||
description = "This is a demo child page"
|
description = "This is a demo child page"
|
||||||
|
tags = ["children", "non-hidden"]
|
||||||
title = "page 1-1-3"
|
title = "page 1-1-3"
|
||||||
+++
|
+++
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
+++
|
+++
|
||||||
descrption = "This be a demo child plank"
|
descrption = "This be a demo child plank"
|
||||||
|
tags = ["children", "non-hidden"]
|
||||||
title = "Plank 1-1-3"
|
title = "Plank 1-1-3"
|
||||||
+++
|
+++
|
||||||
{{< piratify >}}
|
{{< piratify >}}
|
|
@ -1,5 +1,6 @@
|
||||||
+++
|
+++
|
||||||
alwaysopen = false
|
alwaysopen = false
|
||||||
|
tags = ["children", "non-hidden"]
|
||||||
title = "page 2"
|
title = "page 2"
|
||||||
weight = 20
|
weight = 20
|
||||||
+++
|
+++
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
+++
|
+++
|
||||||
alwaysopen = false
|
alwaysopen = false
|
||||||
|
tags = ["children", "non-hidden"]
|
||||||
title = "Plank 2"
|
title = "Plank 2"
|
||||||
weight = 20
|
weight = 20
|
||||||
+++
|
+++
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
+++
|
+++
|
||||||
alwaysopen = false
|
alwaysopen = false
|
||||||
description = "This is a demo child page"
|
description = "This is a demo child page"
|
||||||
|
tags = ["children", "non-hidden"]
|
||||||
title = "page 3"
|
title = "page 3"
|
||||||
weight = 30
|
weight = 30
|
||||||
+++
|
+++
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
+++
|
+++
|
||||||
alwaysopen = false
|
alwaysopen = false
|
||||||
descrption = "This be a demo child plank"
|
descrption = "This be a demo child plank"
|
||||||
|
tags = ["children", "non-hidden"]
|
||||||
title = "Plank 3"
|
title = "Plank 3"
|
||||||
weight = 30
|
weight = 30
|
||||||
+++
|
+++
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
+++
|
+++
|
||||||
description = "This is a plain page test nested in a parent"
|
description = "This is a plain page test nested in a parent"
|
||||||
|
tags = ["children", "non-hidden"]
|
||||||
title = "page 3-1"
|
title = "page 3-1"
|
||||||
+++
|
+++
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
+++
|
+++
|
||||||
descrption = "This be a plain plank test nested 'n a parrrent"
|
descrption = "This be a plain plank test nested 'n a parrrent"
|
||||||
|
tags = ["children", "non-hidden"]
|
||||||
title = "Plank 3-1"
|
title = "Plank 3-1"
|
||||||
+++
|
+++
|
||||||
{{< piratify >}}
|
{{< piratify >}}
|
|
@ -2,6 +2,7 @@
|
||||||
alwaysopen = false
|
alwaysopen = false
|
||||||
description = "This is a hidden demo child page"
|
description = "This is a hidden demo child page"
|
||||||
hidden = true
|
hidden = true
|
||||||
|
tags = ["children", "hidden"]
|
||||||
title = "page 4 (hidden)"
|
title = "page 4 (hidden)"
|
||||||
weight = 40
|
weight = 40
|
||||||
+++
|
+++
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
alwaysopen = false
|
alwaysopen = false
|
||||||
descrption = "This be a hidden demo child plank"
|
descrption = "This be a hidden demo child plank"
|
||||||
hidden = true
|
hidden = true
|
||||||
|
tags = ["children", "hidden"]
|
||||||
title = "Plank 4 (hidden)"
|
title = "Plank 4 (hidden)"
|
||||||
weight = 40
|
weight = 40
|
||||||
+++
|
+++
|
||||||
|
|
|
@ -6,7 +6,9 @@
|
||||||
{{- if or (eq .Kind "taxonomy") (eq .Kind "term") }}
|
{{- if or (eq .Kind "taxonomy") (eq .Kind "term") }}
|
||||||
<ul>
|
<ul>
|
||||||
{{- range .Pages }}
|
{{- range .Pages }}
|
||||||
|
{{- if and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableTagHiddenPages true) ) }}
|
||||||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</ul>
|
</ul>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
Loading…
Reference in a new issue