Skip to content

Commit 22d2f62

Browse files
committed
local vids readme
1 parent 7feb1a0 commit 22d2f62

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,12 @@ Carousel items already run through `relative_url`, so `/static/...` works there.
101101

102102
## Videos
103103

104-
Embed YouTube/Vimeo with Markdown links, or add `video:` in front matter to show the button. For inline embeds, paste the iframe HTML into Markdown if needed.
104+
Embed YouTube/Vimeo with Markdown links, or add `video:` in front matter to show the button. For inline embeds, paste the iframe HTML into Markdown if needed. For local videos, put the file under `static/` and use a video tag, e.g.:
105+
```html
106+
<video controls width="100%">
107+
<source src="{{ '/static/video/demo.mp4' | relative_url }}" type="video/mp4">
108+
</video>
109+
```
105110

106111
## Equations
107112

0 commit comments

Comments
 (0)