Skip to content
{{ if site.Params.doks.alert -}}
{{ partial "header/alert.html" . }}
{{ end -}}
{{ if site.Params.doks.navbarSticky -}}
{{ end -}}
{{ if site.Params.doks.headerBar -}}
{{ end -}}
{{ with site.Params.doks.containerBreakpoint -}}
{{ else -}}
{{ end -}}
Docs
{{ partial "main/showFlexSearch" . }}
{{ $showFlexSearch := .Scratch.Get "showFlexSearch" -}}
{{ if $showFlexSearch -}}
{{ end -}}
{{ if site.Params.add_ons.docSearch -}}
{{ end -}}
{{ if (in site.Params.doks.sectionNav .Section) -}}
{{ if site.Params.doks.headerBar -}}
{{ end -}}
{{ .Section | humanize }}
{{ end -}}
{{ if site.Params.doks.headerBar -}}
{{ end -}}
{{ site.Title }}
{{ $url := "https://api.github.com/repos/DefectDojo/django-DefectDojo/releases/latest" }}
{{ $releaseName := "" }}
{{/* Best-effort: the release chip depends on an unauthenticated GitHub API
call, which is rate-limited (403 Forbidden) on shared CI runners.
Wrap the fetch in `try` so a failed request degrades to "no chip"
instead of failing the whole build (Resource.Err was removed in
Hugo v0.141.0 in favor of the `try` keyword). */}}
{{ with try (resources.GetRemote $url) }}
{{ with .Err }}
{{ warnf "Release notes fetch failed from %s: %s" $url . }}
{{ else with .Value }}
{{ $release := . | transform.Unmarshal | default dict }}
{{ with $release.name }}
{{ $releaseName = . }}
{{ else }}
{{ warnf "Could not parse release name from %s (not valid JSON or missing field)" $url }}
{{ end }}
{{ else }}
{{ warnf "Release notes fetch returned no resource from %s" $url }}
{{ end }}
{{ end }}
{{- /* Compare section segments with the language prefix stripped from
both sides. Translated menu URLs start with //, and so does
RelPermalink, so comparing raw segment 1 would match "de" against
"de" and light up every item as active on every page. */ -}}
{{ $langPrefix := printf "/%s" .Site.Language.Lang }}
{{ $rel := strings.TrimPrefix $langPrefix .RelPermalink }}
{{ $current := index (split $rel "/") 1 }}
{{ if eq $current "" }}{{ $current = "en" }}{{ end }}
{{ range .Site.Menus.main }}
{{ $menuUrl := strings.TrimPrefix $langPrefix .URL }}
{{ $menuSegment := index (split $menuUrl "/") 1 }}
{{ $active := eq $menuSegment $current }}
{{ if .HasChildren -}}