how to include video in jekyll markdown blog

后端 未结 6 2032
日久生厌
日久生厌 2020-12-23 16:00

I just started blogging using jekyll. I write my posts in markdown. Now, I want to include a youtube video in my post. How can I do this?

Also, I dont really like t

6条回答
  •  一向
    一向 (楼主)
    2020-12-23 16:40

    You should be able to put the HTML for embedding directly into your markdown. Under the video, there is a "Share" button, click on this, and then the "Embed" button, which should give you something that looks a little like:

    
    

    Just copy and paste that into your post, the Markdown preprocessor won't touch it.


    For Pygments, there is a whole pile of CSS stylesheets for various colour themes in this repository, you could experiment with them. (Note that you will have to replace .codehilite with .highlight for these to work with Jekyll.)

提交回复
热议问题