Them I did it with some coffeescript.
- At the markdown post, I added this small HTML snippet
<div id="youtube_video_id" class="youtube"></div>.
_includes/footer.html, which is called at my
defaultlayout. I put this line:
- And add this new file:
Some advices here: the file must start with 2 lines of
---. Since the file has extension
.coffee, the script at src requires the same file with extension