Using shortcode inside html file

I have index.html file in themes/some-theme/layouts

I want to use shortcode-example from docs {{< youtube w7Ft2ymGmfc >}}

<body>
  <section class="home-content">
    <div class="home-containers">
      {{ .Content }}
    </div>
    {{< youtube w7Ft2ymGmfc >}}
  </section>
</body>

But, I’m getting an error “themes\iguazio-docs-theme\layouts\index.html:23:1”: parse failed: template: index.html:6: unexpected “<” in command"

I don’t understand my mistake. Please help me.

See https://gohugo.io/content-management/shortcodes/

Shortcodes are simple snippets inside your content files

Shortcodes cannot be used within templates, only within content (typically markdown files).