{{/* Copyright (c) 2023 Eclipse Foundation, Inc. This program and the accompanying materials are made available under the terms of the Eclipse Public License v. 2.0 which is available at http://www.eclipse.org/legal/epl-2.0. Contributors: Olivier Goulet SPDX-License-Identifier: EPL-2.0 */}} {{ if isset .Site.Menus "sidebar" }} {{ $current_page := . }} {{ $current_section := "home" }} {{ if $current_page.Section }} {{ $current_section = $current_page.Section }} {{ end }} {{ range .Site.Menus.sidebar }} {{ $parent_item := . }} {{ if and (.HasChildren) (eq $current_section $parent_item.Identifier ) }} {{ end }} {{end }} {{ end }}