hugo-theme-relearn/layouts/shortcodes/swagger.html

12 lines
325 B
HTML
Raw Normal View History

{{- $version := split hugo.Version "." }}
{{- $major := int (index $version 0) }}
{{- $minor := int (index $version 1) }}
{{- $id := "" }}
{{- if and (ge $major 0) (ge $major 108) }}
{{- $id = .Ordinal }}
{{- end }}
{{- partial "shortcodes/swagger.html" (dict
"context" .Page
"src" (.Get "src")
"id" $id
) }}