mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-30 03:03:09 +00:00
14 lines
No EOL
355 B
HTML
14 lines
No EOL
355 B
HTML
{{- $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/image.html" (dict
|
|
"page" .Page
|
|
"url" .Destination
|
|
"title" .Title
|
|
"alt" .Text
|
|
"id" $id
|
|
) }} |