Skip to content

External media

Images

I use the Local Images Plus plugin to download external images into my Obsidian vault. This makes them available within my website.

YouTube videos

The goal is to link to YouTube videos, without embedding them. A website visitor will have to go to the video on the YouTube website.

I use the YouTube Template plugin to generate the code to include in a page. The Local Images Plus plugin will then help to create a local copy of the video thumbnail.

The basic outlines for a video looks like this:

YouTube video link
![../../../../updates/posts/2025/01/DeepSeek.jpg](../../../../updates/posts/2025/01/DeepSeek.jpg){loading=lazy}
:material-youtube:{ .youtube } [DeepSeek - Computerphile (2025-01-28)](https://www.youtube.com/watch?v=gY4Z-9QlZ64)
  • The image is a local image taken from YouTube.
  • The caption contains a title and link to the original YouTube video.

Working with the plugin

  • Point it to the template file, and make it create new files in a local directory like /maintenance/local-notes.
  • Create a Google API key if needed......
  • Once a video is imported, copy the right portion to the post or page where it should reside. The image should be available locally.
  • Delete the created file when no longer needed.
YouTube template
youtube capture.md
![[{{thumbnail}}]]
:material-youtube:{ .youtube } [{{title}} ({{publishDate}})]({{youtubeUrl}})

{{channelName}}, {{length}}

{{description}}