nordtheme / web

The official Nord website and documentation
https://www.nordtheme.com
MIT License
97 stars 24 forks source link

File metadata not passed from docs page template to Video component #157

Closed arcticicestudio closed 5 years ago

arcticicestudio commented 5 years ago

The Video component maps the video file metadata received from props.sources (array of objects) to the <source> HTML tag, but for docs pages the MDX DocsPage component only passed down the publicUrl metadata field resulting in a array of strings. This causes the Video component failing to load the video file(s) for MDX docs pages. To fix the invalid mapping the DocsPage component should pass down the whole video file metadata object instead of only the publicUrl (string) field.