X
To override Hugo’s embedded x shortcode, copy the [source code] to a file with the same name in the layouts/shortcodes directory. Example # To display an X post with this URL: https://x.com/SanDiegoZoo/status/1453110110599868418 Include this in your Markdown: {{< x user="SanDiegoZoo" id="1453110110599868418" >}} Rendered: Privacy # Adjust the relevant privacy settings in your site configuration. hugo. yaml toml json privacy: x: null [privacy] { "privacy": { "x": null } } disable (bool) Whether to disable the shortcode. ...