mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-12 20:43:19 +00:00
Refactor YouTube shortcode
Includes the following changes: - Add support to retrieve the YouTube title from the video metadata - Adjusts autoplay configuration - Improve argument handling
This commit is contained in:
@@ -466,3 +466,13 @@ As an example, the following shortcode displays a tooltip for a colored hyperlin
|
||||
{{</* tooltip color="primary" title="Tooltip caption" href="#!" */>}}Tooltip{{</* /tooltip */>}} demonstration
|
||||
{{< /example >}}
|
||||
<!-- markdownlint-enable MD037 -->
|
||||
|
||||
## Youtube
|
||||
|
||||
As an example, the following shortcode displays a Hugo quickstart guide.
|
||||
|
||||
<!-- markdownlint-disable MD037 -->
|
||||
{{< example lang="hugo" >}}
|
||||
{{</* youtube id="w7Ft2ymGmfc" autoplay=true autotitle=true */>}}
|
||||
{{< /example >}}
|
||||
<!-- markdownlint-enable MD037 -->
|
||||
|
Reference in New Issue
Block a user