MinimalBible.github.io/_posts/2013-06-25-video-post.md

18 lines
825 B
Markdown
Raw Normal View History

2013-08-23 15:06:39 -04:00
---
layout: post
title: "A Post with a Video"
description: "Custom written post descriptions are the way to go... if you're not lazy."
tags: [sample post, video]
comments: true
2013-08-26 09:59:22 -04:00
share: true
2013-08-23 15:06:39 -04:00
---
2014-02-26 15:04:17 -05:00
<iframe width="560" height="315" src="//www.youtube.com/embed/SU3kYxJmWuQ" frameborder="0"> </iframe>
2013-08-23 15:06:39 -04:00
Video embeds are responsive and scale with the width of the main content block with the help of [FitVids](http://fitvidsjs.com/).
Not sure if this only effects Kramdown or if it's an issue with Markdown in general. But adding YouTube video embeds causes errors when building your Jekyll site. To fix add a space between the `<iframe>` tags and remove `allowfullscreen`. Example below:
{% highlight html %}
2014-02-26 15:04:17 -05:00
<iframe width="560" height="315" src="//www.youtube.com/embed/SU3kYxJmWuQ" frameborder="0"> </iframe>
2013-08-23 15:06:39 -04:00
{% endhighlight %}