{{/* Copyright (c) 2023, 2024 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 Zachary Sabourin SPDX-License-Identifier: EPL-2.0 */}} {{ if isset .Site.Menus "sidebar" }} {{ $identifiers := slice "home" }} {{ if .Page.Params.sidebar }} {{ $identifiers = .Page.Params.sidebar }} {{ else if .Page.Section }} {{ $identifiers = slice .Page.Section }} {{ end }} {{ $menu_sections := where .Site.Menus.sidebar "Identifier" "in" $identifiers}} {{ with $menu_sections }} {{ end }} {{ end }}