{{ $dashboards := .Site.Menus.dashboard_menu }} {{ $currentPage := path.Split (path.Clean .RelPermalink) }} {{ $displayed_in_homepage := .IsHome }} {{ $dashboards_to_show := slice }} {{/* Compile list of dashboards to show depending upon the page */}} {{ if or (eq $currentPage.File "dashboards") ($displayed_in_homepage) }} {{ $dashboards_to_show = $dashboards_to_show | append (where $dashboards "Identifier" "ne" "all_dashboards") }} {{ else if strings.HasSuffix $currentPage.Dir "/topics/" }} {{ range $dashboards }} {{if in (apply .Page.Params.dashboards_topics "urlize" ".") $currentPage.File }} {{ $dashboards_to_show = $dashboards_to_show | append . }} {{ end }} {{ end }} {{ end }}
{{ if or (eq $currentPage.File "dashboards") (strings.HasSuffix $currentPage.Dir "/dashboards/topics/" ) }}
{{ end }}
{{ range $dashboards_to_show }} {{ $dashboardPage := path.Split (path.Clean .Page.RelPermalink) }}
Updated:
{{ .Page.Description }}
{{ if and (not $displayed_in_homepage) (eq $.Site.Language.LanguageName "English") }}
{{ range (.Page.GetTerms "dashboards_topics") }} {{ .LinkTitle }} {{ end }}
{{ end }}
{{ end }}
{{ if or (eq $currentPage.File "dashboards") (strings.HasSuffix $currentPage.Dir "/dashboards/topics/" ) }} {{ end }}