{{/* Tab bar for the Open Science section. Each tab links to its own page, so every tab has a URL. Tabs come from pages that set `tab` in front matter, ordered by page weight. Pages without `tab` (AI Network, past events) stay out of the bar. The first tab is the section page. Its label is `tab` on _index.md. Expects a dict: "current" (the page being shown) and "section" (the Open Science section page). */}} {{ $current := .current }} {{ $section := .section }} {{ $tabs := slice }} {{ range $section.RegularPages.ByWeight }} {{ if .Params.tab }} {{ $tabs = $tabs | append . }} {{ end }} {{ end }}