Debian Codegraph @

docs/content/en/shortcodes/instagram.md

raw
1 ---
2 title: Instagram shortcode
3 linkTitle: Instagram
4 description: Embed an Instagram post in your content using the instagram shortcode.
5 categories: []
6 keywords: []
7 ---
8
9 > [!NOTE]
10 > To override Hugo's embedded `instagram` shortcode, copy the [source code][] to a file with the same name in the `layouts/_shortcodes` directory.
11
12 ## Example
13
14 To display an Instagram post with this URL:
15
16 ```text
17 https://www.instagram.com/p/CxOWiQNP2MO/
18 ```
19
20 Include this in your Markdown:
21
22 ```md
23 {{</* instagram CxOWiQNP2MO */>}}
24 ```
25
26 Huge renders this to:
27
28 {{< instagram CxOWiQNP2MO >}}
29
30 ## Privacy
31
32 Adjust the relevant privacy settings in your project configuration.
33
34 {{< code-toggle config=privacy.instagram />}}
35
36 `disable`
37 : (`bool`) Whether to disable the shortcode. Default is `false`.
38
39 `simple`
40 : (`bool`) Whether to enable simple mode for image card generation. If `true`, Hugo creates a static card without JavaScript. This mode only supports image cards, and the image is fetched directly from Instagram's servers. Default is `false`.
41
42 [source code]: <{{% eturl instagram %}}>