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
|
||||
# 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
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
+++
|
||||
alwaysopen = false
|
||||
description = "This is a demo child page"
|
||||
tags = ["children", "non-hidden"]
|
||||
title = "page 1"
|
||||
weight = 10
|
||||
+++
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
+++
|
||||
alwaysopen = false
|
||||
descrption = "This be a demo child plank"
|
||||
tags = ["children", "non-hidden"]
|
||||
title = "Plank 1"
|
||||
weight = 10
|
||||
+++
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
+++
|
||||
alwaysopen = false
|
||||
descrption = "This be a demo child plank"
|
||||
tags = ["children", "non-hidden"]
|
||||
title = "Plank 1-1"
|
||||
|
||||
+++
|
||||
{{< piratify >}}
|
|
@ -1,6 +1,7 @@
|
|||
+++
|
||||
description = "This is a hidden demo child page"
|
||||
hidden = true
|
||||
tags = ["children", "hidden"]
|
||||
title = "page 1-1-1 (hidden)"
|
||||
+++
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
+++
|
||||
descrption = "This be a hidden demo child plank"
|
||||
hidden = true
|
||||
tags = ["children", "hidden"]
|
||||
title = "Plank 1-1-1 (hidden)"
|
||||
+++
|
||||
{{< piratify >}}
|
|
@ -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,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 >}}
|
|
@ -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)"
|
||||
+++
|
||||
|
||||
|
|
|
@ -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 >}}
|
|
@ -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"
|
||||
+++
|
||||
|
||||
|
|
|
@ -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 >}}
|
|
@ -1,5 +1,6 @@
|
|||
+++
|
||||
description = "This is a demo child page"
|
||||
tags = ["children", "non-hidden"]
|
||||
title = "page 1-1-2"
|
||||
+++
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
+++
|
||||
descrption = "This be a demo child plank"
|
||||
tags = ["children", "non-hidden"]
|
||||
title = "Plank 1-1-2"
|
||||
+++
|
||||
{{< piratify >}}
|
|
@ -1,5 +1,6 @@
|
|||
+++
|
||||
description = "This is a demo child page"
|
||||
tags = ["children", "non-hidden"]
|
||||
title = "page 1-1-2-1"
|
||||
+++
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
+++
|
||||
descrption = "This be a demo child plank"
|
||||
tags = ["children", "non-hidden"]
|
||||
title = "Plank 1-1-2-1"
|
||||
+++
|
||||
{{< piratify >}}
|
|
@ -1,5 +1,6 @@
|
|||
+++
|
||||
description = "This is a demo child page"
|
||||
tags = ["children", "non-hidden"]
|
||||
title = "page 1-1-2-2"
|
||||
+++
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
+++
|
||||
descrption = "This be a demo child plank"
|
||||
tags = ["children", "non-hidden"]
|
||||
title = "Plank 1-1-2-2"
|
||||
+++
|
||||
{{< piratify >}}
|
|
@ -1,5 +1,6 @@
|
|||
+++
|
||||
description = "This is a demo child page"
|
||||
tags = ["children", "non-hidden"]
|
||||
title = "page 1-1-3"
|
||||
+++
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
+++
|
||||
descrption = "This be a demo child plank"
|
||||
tags = ["children", "non-hidden"]
|
||||
title = "Plank 1-1-3"
|
||||
+++
|
||||
{{< piratify >}}
|
|
@ -1,5 +1,6 @@
|
|||
+++
|
||||
alwaysopen = false
|
||||
tags = ["children", "non-hidden"]
|
||||
title = "page 2"
|
||||
weight = 20
|
||||
+++
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
+++
|
||||
alwaysopen = false
|
||||
tags = ["children", "non-hidden"]
|
||||
title = "Plank 2"
|
||||
weight = 20
|
||||
+++
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
+++
|
||||
alwaysopen = false
|
||||
description = "This is a demo child page"
|
||||
tags = ["children", "non-hidden"]
|
||||
title = "page 3"
|
||||
weight = 30
|
||||
+++
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
+++
|
||||
alwaysopen = false
|
||||
descrption = "This be a demo child plank"
|
||||
tags = ["children", "non-hidden"]
|
||||
title = "Plank 3"
|
||||
weight = 30
|
||||
+++
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
+++
|
||||
description = "This is a plain page test nested in a parent"
|
||||
tags = ["children", "non-hidden"]
|
||||
title = "page 3-1"
|
||||
+++
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
+++
|
||||
descrption = "This be a plain plank test nested 'n a parrrent"
|
||||
tags = ["children", "non-hidden"]
|
||||
title = "Plank 3-1"
|
||||
+++
|
||||
{{< piratify >}}
|
|
@ -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
|
||||
+++
|
||||
|
|
|
@ -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
|
||||
+++
|
||||
|
|
|
@ -6,8 +6,10 @@
|
|||
{{- 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 }}
|
||||
<footer class=" footline">
|
||||
|
|
Loading…
Reference in a new issue