# Variables in HTML content not being interpreted?

**URL:** <https://discourse.gohugo.io/t/variables-in-html-content-not-being-interpreted/26553>\
**Category:** support\
**Created:** [June 27, 2020, 10:43pm UTC](https://discourse.gohugo.io/t/variables-in-html-content-not-being-interpreted/26553 "2020-06-27T22:43:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndyM](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/andym/32/11725_2.png) [@AndyM](https://discourse.gohugo.io/u/AndyM)\
**Post date:** [June 27, 2020, 10:43pm UTC](https://discourse.gohugo.io/t/variables-in-html-content-not-being-interpreted/26553/1 "2020-06-27T22:43:44Z")

</div>

I have an HTML file, which is called content/\_index.en.html , but the variable blocks don’t appear to be interpreted. My file looks like:

```
---
date: 2020-06-24T14:51:43-04:00
draft: false
---

    <div class="simple-section" id="partners">
        <div class="container">
            <h2 class="main_title greenbg">{{ i18n "Partners" }}</h2>
            <br />
            <div class="row">
                <div class="col-sm-12"><br /><br />
                {{ partial "sponsors.html" . }}
                </div>
            </div>
        </div>
    </div>
```

---

<div class="post-metadata">

**Author:** ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)\
**Post date:** [June 27, 2020, 11:03pm UTC](https://discourse.gohugo.io/t/variables-in-html-content-not-being-interpreted/26553/2 "2020-06-27T23:03:01Z")

</div>

Template code (in curly braces, “`{{}}`”) isn’t rendered directly from the content of a file; instead use a shortcode. 🙂

---

<div class="post-metadata">

**Author:** ![AndyM](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/andym/32/11725_2.png) [@AndyM](https://discourse.gohugo.io/u/AndyM)\
**Post date:** [June 27, 2020, 11:11pm UTC](https://discourse.gohugo.io/t/variables-in-html-content-not-being-interpreted/26553/3 "2020-06-27T23:11:16Z")

</div>

Do you have an example, still new to Hugo?

---

<div class="post-metadata">

**Author:** ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)\
**Post date:** [June 27, 2020, 11:33pm UTC](https://discourse.gohugo.io/t/variables-in-html-content-not-being-interpreted/26553/4 "2020-06-27T23:33:58Z")

</div>

> **[Shortcodes](https://gohugo.io/content-management/shortcodes/)**
>
> Shortcodes are simple snippets inside your content files calling built-in or custom templates.

---

<div class="post-metadata">

**Author:** ![AndyM](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/andym/32/11725_2.png) [@AndyM](https://discourse.gohugo.io/u/AndyM)\
**Post date:** [June 27, 2020, 11:56pm UTC](https://discourse.gohugo.io/t/variables-in-html-content-not-being-interpreted/26553/5 "2020-06-27T23:56:55Z")

</div>

I tried the following to no avail:

{{% partial “sponsors.html” . %}}  
{{\< partial “sponsors.html” . \>}}

---

<div class="post-metadata">

**Author:** ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)\
**Post date:** [June 28, 2020, 5:28pm UTC](https://discourse.gohugo.io/t/variables-in-html-content-not-being-interpreted/26553/6 "2020-06-28T17:28:57Z")

</div>

Share your project and I’ll take a look. 🙂
