# Using curly braces in markdown files

**URL:** <https://discourse.gohugo.io/t/using-curly-braces-in-markdown-files/36033>\
**Category:** support\
**Created:** [December 12, 2021, 7:55pm UTC](https://discourse.gohugo.io/t/using-curly-braces-in-markdown-files/36033 "2021-12-12T19:55:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![esawertu](https://avatars.discourse-cdn.com/v4/letter/e/94ad74/32.png) [@esawertu](https://discourse.gohugo.io/u/esawertu)\
**Post date:** [December 12, 2021, 7:55pm UTC](https://discourse.gohugo.io/t/using-curly-braces-in-markdown-files/36033/1 "2021-12-12T19:55:11Z")

</div>

Hi. I wanted to call an item defined in the config file using the curly braces `{{ }}` in a markdown file but that seems not to work and instead, the code itself and the brackets are shown. This works in Jekyll but not in Hugo. Is there a workaround? Or do I use a shortcode instead?

---

<div class="post-metadata">

**Author:** ![nfriedli](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/nfriedli/32/26027_2.png) [@nfriedli](https://discourse.gohugo.io/u/nfriedli)\
**Post date:** [December 12, 2021, 7:57pm UTC](https://discourse.gohugo.io/t/using-curly-braces-in-markdown-files/36033/2 "2021-12-12T19:57:13Z")

</div>

> [@esawertu](#):
>
> Or do I use a shortcode instead?

Yes: [Shortcodes | Hugo](https://gohugo.io/content-management/shortcodes/)

---

<div class="post-metadata">

**Author:** ![alexandros](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexandros](https://discourse.gohugo.io/u/alexandros)\
**Post date:** [December 12, 2021, 7:58pm UTC](https://discourse.gohugo.io/t/using-curly-braces-in-markdown-files/36033/3 "2021-12-12T19:58:16Z")

</div>

> [@nfriedli](#):
>
> > [@esawertu](#):
> >
> > Or do I use a shortcode instead?
> 
> Yes: [Shortcodes | Hugo](https://gohugo.io/content-management/shortcodes/)

Or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes)

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [December 14, 2021, 7:58pm UTC](https://discourse.gohugo.io/t/using-curly-braces-in-markdown-files/36033/4 "2021-12-14T19:58:19Z")

</div>

Closed on December 14, 2021, 7:58pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
