Fixed single-image img shortcode not being centered.

This commit is contained in:
chris062689@gmail.com 2018-12-02 17:59:30 -05:00
parent 5805be18dd
commit a3b647313c

View file

@ -6,7 +6,7 @@
{{ $title := (index $items 1) }} {{ $title := (index $items 1) }}
{{ $split_src := split $src "." }} {{ $split_src := split $src "." }}
{{ $extension := index $split_src (sub (len $split_src) 1) }} {{ $extension := index $split_src (sub (len $split_src) 1) }}
<div class="column"> <div class="column has-text-centered">
{{ if eq $extension "mp4" }} {{ if eq $extension "mp4" }}
<video preload="auto" autoplay="autoplay" muted="muted" loop="loop" webkit-playsinline=""> <video preload="auto" autoplay="autoplay" muted="muted" loop="loop" webkit-playsinline="">
<source src="{{ $src }}" type="video/mp4"> <source src="{{ $src }}" type="video/mp4">