shortcodes: fix Hugo version check

This commit is contained in:
Sören Weber 2023-05-25 12:43:10 +02:00
parent 7daec21538
commit 5fd3fdbd75
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
4 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@
{{- $major := int (index $version 0) }}
{{- $minor := int (index $version 1) }}
{{- $id := "" }}
{{- if and (ge $major 0) (ge $major 108) }}
{{- if or (and (eq $major 0) (ge $minor 108)) (gt $major 0) }}
{{- $id = .Ordinal }}
{{- end }}
{{- partial "shortcodes/image.html" (dict

View file

@ -3,7 +3,7 @@
{{- $major := int (index $version 0) }}
{{- $minor := int (index $version 1) }}
{{- $id := "" }}
{{- if and (ge $major 0) (ge $major 108) }}
{{- if or (and (eq $major 0) (ge $minor 108)) (gt $major 0) }}
{{- $id = .Ordinal }}
{{- end }}
{{- partial "shortcodes/expand.html" (dict

View file

@ -2,7 +2,7 @@
{{- $major := int (index $version 0) }}
{{- $minor := int (index $version 1) }}
{{- $id := "" }}
{{- if and (ge $major 0) (ge $major 108) }}
{{- if or (and (eq $major 0) (ge $minor 108)) (gt $major 0) }}
{{- $id = .Ordinal }}
{{- end }}
{{- partial "shortcodes/openapi.html" (dict

View file

@ -2,7 +2,7 @@
{{- $major := int (index $version 0) }}
{{- $minor := int (index $version 1) }}
{{- $id := "" }}
{{- if and (ge $major 0) (ge $major 108) }}
{{- if or (and (eq $major 0) (ge $minor 108)) (gt $major 0) }}
{{- $id = .Ordinal }}
{{- end }}
{{- partial "shortcodes/swagger.html" (dict