diff options
Diffstat (limited to 'layouts/shortcodes/block-media-right.html')
-rw-r--r-- | layouts/shortcodes/block-media-right.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/shortcodes/block-media-right.html b/layouts/shortcodes/block-media-right.html index e060bce..3146680 100644 --- a/layouts/shortcodes/block-media-right.html +++ b/layouts/shortcodes/block-media-right.html @@ -1,3 +1,4 @@ -<div class="block-media block-media_right"> +{{ $width := cond $.IsNamedParams ($.Get "width") "" }} +<div class="block-media block-media_right" {{ with $width }}style="width:{{ . }}"{{ end }}> {{ .Inner | $.Page.RenderString }} </div>
\ No newline at end of file |