docs-matrix-spec/layouts/shortcodes/changed-in.html

9 lines
226 B
HTML

{{- $ver := .Params.v -}}
{{- with page.Params.version -}}
{{- if eq $ver . -}}
<strong>[Changed in this version]</strong>
{{- end -}}
{{- else -}}
<strong>[Changed in <code>v{{ $ver }}</code>]</strong>
{{- end -}}