- {{ with (.Get "title") -}}
- {{ . }}
- {{- end -}}
- {{- if or (.Get "caption") (.Get "attr") -}}
- {{- .Get "caption" | markdownify -}}
- {{- with .Get "attrlink" }}
-
- {{- end -}}
- {{- .Get "attr" | markdownify -}}
- {{- if .Get "attrlink" }}{{ end }}
- {{- end }}
-
- {{- end }}
+ width="100%"
+ height="auto"
+ style="max-width:{{ div $image.Width 2 }}px; max-height:{{ div $image.Height 2 }}px;"
+ />
+ {{- if .Get "href" }}{{ end -}}
+ {{- if .Get "caption" -}}
+