{{ if and (not .IsHome) (ne .Path "/docs/research") }} {{ $area := partial "docs/nav-area" . }} {{ with .Parent }}{{ if and (not .IsHome) .Title }}
{{ if and (eq $area "example") (eq .Path "/docs") }}{{ i18n "docsExamples" }}{{ else if and (eq $area "research") (eq .Path "/docs") }}{{ i18n "docsResearch" }}{{ else if eq .Path "/docs" }}{{ i18n "docsDocumentation" }}{{ else }}{{ .Title }}{{ end }}
{{ end }}{{ end }} {{ end }} {{/* Titles are presentation metadata; leave the Markdown body untouched. */}} {{ if not (findRE "]" .Content 1) }}

{{ partial "docs/title" . | default .Site.Title }}

{{ end }} {{ if and (ne .Site.Language.Lang "en") .Params.translationSource }} {{ $model := .Params.translationModel }} {{/* An Ollama tag such as "translategemma:4b" names its model family first. */}} {{ $family := index (split $model ":") 0 }} {{ $url := index site.Params.translationModelLinks $family | default (printf "https://ollama.com/library/%s" $family) }} {{ $link := printf `%s` $url $model }}

{{ i18n "docsAutomaticTranslation" (dict "Model" $link) | safeHTML }} {{ range where .AllTranslations "Language.Lang" "en" }} {{ i18n "docsEnglishOriginal" }} {{ end }}

{{ end }}