diff options
author | kballou <kballou@devnulllabs.io> | 2015-05-06 23:59:08 -0600 |
---|---|---|
committer | kballou <kballou@devnulllabs.io> | 2017-09-02 19:31:44 -0600 |
commit | fe2ebb0093023e0e9f10807d21d7b30995915c8e (patch) | |
tree | 08d304a87dd44d6bc3e38c46a0c722b644442c8e | |
parent | ba71772a8c622ca890ba3c6075df1cb92ae17c32 (diff) | |
download | blog.kennyballou.com-fe2ebb0093023e0e9f10807d21d7b30995915c8e.tar.gz blog.kennyballou.com-fe2ebb0093023e0e9f10807d21d7b30995915c8e.tar.xz |
Add video shortcode
-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; +} |