W3C validation cleanup

This commit is contained in:
Michael Rose
2013-09-09 16:13:17 -04:00
parent 801f375dea
commit 3f6dab5389
3 changed files with 19 additions and 20 deletions

View File

@ -7,12 +7,12 @@ comments: true
share: true
---
<iframe width="560" height="315" src="http://www.youtube.com/embed/SqYiglufb8Y" frameborder="0"> </iframe>
<iframe width="560" height="315" src="http://www.youtube.com/embed/SqYiglufb8Y"> </iframe>
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 %}
<iframe width="560" height="315" src="http://www.youtube.com/embed/PWf4WUoMXwg" frameborder="0"> </iframe>
<iframe width="560" height="315" src="http://www.youtube.com/embed/PWf4WUoMXwg"> </iframe>
{% endhighlight %}