backy/docs/themes/hugo-theme-relearn/layouts/shortcodes/swagger.html

12 lines
338 B
HTML
Raw Normal View History

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