Skip to content

Commit

Permalink
add desktop and mobile size to block-figure
Browse files Browse the repository at this point in the history
  • Loading branch information
sebousan committed Mar 25, 2024
1 parent ff5c5b6 commit 98186b5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions layouts/partials/blocks/templates/figure.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
{{- $desktop = printf "%sx" (string $width) -}}
{{- end -}}

{{- if .figure -}}
{{- $figure := merge .figure (dict "desktop" $desktop "mobile" $mobile) -}}
<section class="block-figure {{- with .background }} block-bg{{ end }}" {{- partial "func/SetAnim" (dict "element" "block") }}>
<div class="container">

Expand All @@ -27,7 +29,7 @@
<div class="{{ $class }}">
{{- end -}}

{{- with .figure -}}
{{- with $figure -}}
{{- partial "commons/figure" . -}}
{{- end -}}

Expand All @@ -37,4 +39,5 @@
{{- end -}}

</div>
</section>
</section>
{{- end -}}

0 comments on commit 98186b5

Please sign in to comment.