Skip to content

Commit

Permalink
fix: remove unit from width and height attributes (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jan 13, 2024
1 parent e3bc1b6 commit ddfe37b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/images/image.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
{{- $alt := default "" .Alt }}
{{- $caption := default "" .Caption }}
{{- $className := default (default "img-fluid" $siteParams.class_name) .ClassName }}
{{- $height := default "" ($params.Get "height") }}
{{- $height := default "" ($params.Get "height" | strings.TrimSuffix "px") }}
{{- $originalHeight := 0 }}
{{- $naturalHeight := $height }}
{{- $width := default "" ($params.Get "width") }}
{{- $width := default "" ($params.Get "width" | strings.TrimSuffix "px") }}
{{- $originalWidth := 0 }}
{{- $naturalWidth := $width }}
{{- $wrapperClass := "" }}
Expand Down

0 comments on commit ddfe37b

Please sign in to comment.