mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 09:43:06 +00:00
12 lines
321 B
HTML
12 lines
321 B
HTML
|
{{- $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/openapi.html" (dict
|
||
|
"context" .
|
||
|
"src" (.Get "src")
|
||
|
"id" $id
|
||
|
) }}
|