--- title: Other Shortcodes linkTitle: Others sidebar: exclude: true next: /docs/guide/deploy-site --- {{< callout emoji="ℹ️" >}} Some of these are Hugo built-in shortcodes. These shortcodes are considered less stable and may be changed anytime. {{< /callout >}} ## Badge ``` {{}} ``` Result: {{< badge "Badge" >}} Variants: ``` {{}} {{}} {{}} ``` Result: {{< badge content="info" type="info" >}}   {{< badge content="warning" type="warning" >}}   {{< badge content="error" type="error" >}} With link and icon: ``` {{}} ``` Result: {{< badge content="Releases" link="https://github.com/imfing/hextra/releases" icon="github" >}} ## YouTube Embed a YouTube video. ``` {{}} ``` Result: {{< youtube id=dQw4w9WgXcQ loading=lazy >}} For more information, see [Hugo's YouTube Shortcode](https://gohugo.io/content-management/shortcodes/#youtube). ## PDF With PDF shortcode, you can embed a PDF file in your content. ``` {{}} ``` You can also place the PDF file in your project directory and use the relative path. ``` {{}} ``` Example: {{< pdf "https://upload.wikimedia.org/wikipedia/commons/1/13/Example.pdf" >}}