add video shortcode

This commit is contained in:
Dmitry Kolosov 2023-08-03 18:36:21 +02:00
parent cdc5532b60
commit 2cdfded2e5
5 changed files with 39 additions and 2 deletions

View file

@ -275,6 +275,10 @@ If you use webmention.io you can also enable pingback with `pingback: true`
### Disabling comments per-page basis
Add `disableComments: true` to post front matter.
## Custom shortcodes
### Video (for local videofiles)
Example: `{{< video src="/media/movie.mp4" type="video/mp4" preload="auto" caption="Some caption" alt="Some alt" >}}`
## Contributing
If you find a bug or have an idea for a feature, feel free to write an [issue](https://github.com/mitrichius/hugo-theme-anubis/issues) or make a PR.