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 >}}

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

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.


Shortcodes are simple snippets inside your content files

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