Videos can greatly enhance your website or blog. Whether you want to embed videos from YouTube, Vimeo, or any other online platform, or even host them locally, here's how you can do it.
To embed a YouTube video, use the following Markdown syntax:
[![Video Title](https://img.youtube.com/vi/YOUR_VIDEO_ID/0.jpg)](https://www.youtube.com/watch?v=YOUR_VIDEO_ID)
sample output
If you want to start the video from a specific point, you can add the time parameter in the video URL:
[![Video Title](https://img.youtube.com/vi/YOUR_VIDEO_ID/0.jpg)](https://www.youtube.com/watch?v=YOUR_VIDEO_ID&t=100)
sample output
You can also use the short syntax for YouTube videos:
[![Video Title](https://youtu.be/YOUR_VIDEO_ID)](https://youtu.be/YOUR_VIDEO_ID)
sample output
If your video is hosted locally, you can use the following Markdown syntax:
That's it! You can now embed videos in your Markdown-based static site generator using these instructions.