Shortcode Youtube
shortcode youtube
example of using an existing shortcode
Medium | The Agent | shortcodes in Hugo Hugo | built in short codes
---
title: "Embed a Youtube video"
date: 2020-01-01T14:17:03-05:00
draft: false
---
How to create a custom shortcode
So how do we create our own custom shortcode?
It’s fairly easy. All we have to do is create a shortcodes folder under the layouts folder, and put the HTML file that we want the shortcode to insert in the folder. The name of the HTML file (without the .html extension) will be the name of the custom shortcode.
![example](/img in static folder.jpg)
See Also
- 0735 | Publish Hugo Website on Github
- 0737 | Youtube Videos to Watch
- Shortcode: codecaption
- Shortcode for Tweet
- 0731 | Hugo front matter