diff options
author | vjeantet <valere.jeantet@gmail.com> | 2020-08-19 14:06:00 +0300 |
---|---|---|
committer | vjeantet <valere.jeantet@gmail.com> | 2020-08-19 14:06:00 +0300 |
commit | 5ac2db91010c879c13e1e9e2af6231e487b3ccf5 (patch) | |
tree | 6d77462bdaa874a38aa953efd6cb0bd6e3c421b1 /layouts/partials | |
parent | 7328d74903e5804c448f845fdba33cf97f0871ab (diff) |
tab renamed to subpage
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/_menu.html | 4 | ||||
-rw-r--r-- | layouts/partials/body-article-content.html | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/layouts/partials/_menu.html b/layouts/partials/_menu.html index 7a477e8..99606b7 100644 --- a/layouts/partials/_menu.html +++ b/layouts/partials/_menu.html @@ -21,7 +21,7 @@ {{- with .sect}} {{- if and .IsSection (or (not .Params.hidden) $.showhidden)}} {{- $numberOfPages := (len .Sections) }} - {{- $numberOfPages := (len (where .Sections "Params.tab" "ne" "true")) }} + {{- $numberOfPages := (len (where .Sections "Params.subpage" "ne" "true")) }} {{- safeHTML .Params.head}} <li data-nav-id="{{.Permalink}}" class="dd-item {{- if .IsAncestor $currentNode}} parent{{end}} @@ -71,7 +71,7 @@ {{- range $pages.ByWeight }} {{- if and .Params.hidden (not $.showhidden) }} {{- else}} - {{ if and (eq .Kind "section") (not .Params.tab ) }} + {{ if and (eq .Kind "section") (not .Params.subpage ) }} {{- template "section-tree-nav" dict "sect" . "currentnode" $currentNode "level" (add $level 1)}} diff --git a/layouts/partials/body-article-content.html b/layouts/partials/body-article-content.html index de0ab66..9df16e3 100644 --- a/layouts/partials/body-article-content.html +++ b/layouts/partials/body-article-content.html @@ -16,8 +16,8 @@ {{ $cPage := .}}
{{ $elements := (where .Sections "NONONO" false) }}
- {{ $isSubPage := .Params.tab }}
- {{ $subpages := (where (where (where .Sections.ByWeight "Params.tab" true) "Params.hidden" "ne" true ) "Kind" "section")}}
+ {{ $isSubPage := .Params.subpage }}
+ {{ $subpages := (where (where (where .Sections.ByWeight "Params.subpage" true) "Params.hidden" "ne" true ) "Kind" "section")}}
{{ $pages := (where (where .CurrentSection.Pages.ByWeight "Kind" "page") "Params.hidden" "ne" true ) }}
{{if $isSubPage }}
@@ -29,7 +29,7 @@ {{if gt (len $subpages) 0}} <!-- section has subpage -->
{{ $elements = $subpages }}
{{else if $isSubPage }} <!-- Section is subpage -->
- {{ $elements = (where (where .Parent.Sections.ByWeight "Params.tab" true) "Params.hidden" "ne" true ) }}
+ {{ $elements = (where (where .Parent.Sections.ByWeight "Params.subpage" true) "Params.hidden" "ne" true ) }}
{{else if gt (len $pages) 0}} <!-- Section has pages -->
{{ $elements = $pages }}
{{else}}
|