Skip to content

ListPage: Suppress list pages where products have content #210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
</nav>
</div>



<section class="content-layout" data-mf="true" style="display: none">
<section class="breadcrumb-layout">
{{ if not .IsHome }}
Expand All @@ -32,6 +30,14 @@
<h1>{{ .Title }}</h1>
{{ .Content }}

{{ if (lt .WordCount 1) }}
{{ range .Pages.ByWeight }}
<h2>
<a href="{{ if .Params.url}}{{ .Params.url}}{{else}}{{ .Permalink }}{{end}}">{{ .Title }}</a>
</h2>
{{ end }}
{{end}}

<hr>
{{ if .Page.Lastmod }}
<div class="last-modified">
Expand Down
3 changes: 2 additions & 1 deletion layouts/partials/list-main.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h1 class="bd-title">
{{ end }}
</div>
</div>

{{ if lt .WordCount 1 }}
<section class="col-md-12 col-xl-12 py-md-3 pl-md-5" id="section-content-list">

<div class="row">
Expand All @@ -29,6 +29,7 @@ <h3 class="card-title">
</div>
</div>
</section>
{{ end }}
</div>


Expand Down
1 change: 1 addition & 0 deletions layouts/partials/sidebar-v2.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
(dict "title" "NGINX Ingress Controller" "url" "/nginx-ingress-controller" "type" "nginx-one")
(dict "title" "NGINX Gateway Fabric" "url" "/nginx-gateway-fabric" "type" "nginx-one")
(dict "title" "NGINX Open Source" "url" "https://nginx.org/en/docs/" "type" "nginx-one")
(dict "title" "Subscription Licensing & Solutions" "url" "/solutions/" "type" "nginx-one")
(dict "title" "NGINX Agent" "url" "/nginx-agent" "type" "nginx-one")
(dict "title" "NGINX App Protect WAF" "url" "/nginx-app-protect-waf" "type" "nginx-app-protect")
(dict "title" "NGINX App Protect DoS" "url" "/nginx-app-protect-dos" "type" "nginx-app-protect")
Expand Down
Loading