"utilities/LogWarn.html") (dict 
        "partial"  "shortcodes/nav-item.html" 
        "warnid"   "warn-invalid-arguments"
        "msg"      "Invalid arguments"
        "details"  ($args.errmsg | append $args.warnmsg)
        "file"     page.File
        "position" .Position
    ) -}}
{{- end -}}

{{/* Initialize arguments */}}
{{- if not .Parent -}}
    {{- errorf "The nav-item shortcode should be contained within a nav shortcode: %s" .Position -}}
{{- else if not $args.err -}}
    {{- $id := .Ordinal -}