{{/* 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 */}} {{ $main_menu := .Page.Params.main_menu | default "main" }} {{ $current_page := . }} {{ $hide_ad := $.Site.Params.hide_ad | default true }} {{ $header_ad_format := $.Site.Params.header_ad_format | default "ads_square" }} {{ $megaMenu := .Site.Data.mega_menu }}
{{ range (index .Site.Menus $main_menu) }} {{ $menu_id := .Identifier | default (lower .Name) }} {{ $menu_id = printf "%s-menu" $menu_id }} {{ end }}