diff options
-rw-r--r-- | layouts/shortcodes/video.html | 6 | ||||
-rw-r--r-- | static/css/site.css | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/layouts/shortcodes/video.html b/layouts/shortcodes/video.html new file mode 100644 index 0000000..f664012 --- /dev/null +++ b/layouts/shortcodes/video.html @@ -0,0 +1,6 @@ +<div class="embed-video"> + <video width="{{ index .Params 2}}" height="{{ index .Params 3}}"> + <source src="{{ index .Params 0}}" type="{{ index .Params 1}}"> + Your browser does not support the video tag. + </video> +</div> diff --git a/static/css/site.css b/static/css/site.css index bbd6065..009072c 100644 --- a/static/css/site.css +++ b/static/css/site.css @@ -129,3 +129,8 @@ pre code { width: 20%; position: relative; } +.embed-video { + width: 75%; + margin-left: auto; + margin-right: auto; +} |