Is Menu External

Function to indicate whether the given menu entry is an external menu.

On this page


The function accepts a menu entry, and return a boolean value indicates whether the given menu is an external menu.

1{{ range site.Menus.main }}
2  {{ if partial "base/functions/is-menu-external" . }}
3    <a href="{{ .URL }}" target="_blank" rel="external">{{ .Name }}</a>
4  {{ end }}
5{{ end }}