Skip to content

Commit

Permalink
Merge pull request #768 from mpourismaiel/fix/hero/fix-image-styling
Browse files Browse the repository at this point in the history
Fix hero image params' height issue
  • Loading branch information
stp-ip authored May 23, 2020
2 parents 60c58db + e0063db commit 7859847
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions layouts/partials/fragments/hero.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@
{{- print $.Params.title -}}
{{- end -}}
"
{{- if .height }} height="{{ .height }}"{{- end -}}
{{- if .width }} width="{{ .width }}"{{- end -}}
style="
{{- if .height }}height: {{ .height }} !important;{{- end -}}
{{- if .width }}width: {{ .width }} !important;{{- end -}}
"
></img>
</div>
{{- end }}
Expand Down Expand Up @@ -113,4 +115,4 @@
});
</script>
{{ end -}}
{{ end -}}
{{ end -}}

0 comments on commit 7859847

Please sign in to comment.