{{/* Expect to have context bound to ".ctx", and the top level "version" and "pageUrl" passed in with the context. */}} {{/* In the current "ctx" the file path refers to the doc we are linking to, not the page we are on */}} {{- $isThisPage := eq .ctx.URL .pageUrl -}} {{- $title := cond (isset .ctx.Params "navtitle") (.ctx.Params.navtitle) .ctx.Title -}} {{- $short := cond (isset .ctx.Params "short") (.ctx.Params.short) $title -}} {{- $linkRef := .ctx.URL -}} {{ $short }} {{- if $isThisPage -}}
{{- end -}}