Hi;
I'm not sure it is possible but
I try to have as hero_media = "intro.webm" in content/home/hero.md
but it seams not working
It is a feature it would be supported in a near future ?
The Hero widget only directly supports images for now, although you can still clear hero_media and instead embed video into the body of the widget using one of the video shortcodes. (The video just won't appear on the right side of the widget if you add video in this way.)
It's on our roadmap to add video support for hero_media in the near future.
Because of the recent help request in #1186, I wanted to post my solution for adding vimeo and youtube videos to the hero carousel. It has been some time, hopefully the solution is complete. The modified hero-carousel code is attached.
Adding a video is done as following:
[[item]]
title = "My Title"
content = "a funny explanation"
align = "center"
youtube_id = "video id code on youtube" # or vimeo_id = "video id number on vimeo"
overlay_color = "#555" # An HTML color value.
overlay_img = "" # Image path relative to your static/img/ folder.
overlay_filter = 0 # Darken the image. Value in range 0-1.
Most helpful comment
The Hero widget only directly supports images for now, although you can still clear
hero_mediaand instead embed video into the body of the widget using one of the video shortcodes. (The video just won't appear on the right side of the widget if you add video in this way.)It's on our roadmap to add video support for
hero_mediain the near future.