Forcer la sortie des diagrammes en png
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
{{- $description := default $data.description | default $title -}}
|
||||
{{- $image := .Page.Resources.GetMatch $imgPath -}}
|
||||
{{- $display := $image }}
|
||||
{{- if gt $display.Height 810 }}
|
||||
{{- if and $display (ne $display.MediaType.SubType "svg") (gt $display.Height 810) }}
|
||||
{{- $display = $image.Resize "x810" -}}
|
||||
{{- end }}
|
||||
<figure>
|
||||
@@ -38,4 +38,4 @@
|
||||
</p>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
</figure>
|
||||
</figure>
|
||||
|
||||
Reference in New Issue
Block a user