Function-Call is plain html in output

Hello,
as the title says I have the problem that the function does not seem to be interpreted by HUGO.

My call:

{{ with .Site.GetPage "intro" }}
  {{ .Content }}
{{ end }}

The output is not the content of the file but the call itself in plain html.

My folder structure:

  • _index.md
  • pages
    • contact
      • index.md
      • index.html
      • intro.md

Thanks for any tips given.

EDIT: If any information is needed I’ll provide it :slight_smile:

Hi,

with needs to be closed with an end: Introduction to Hugo Templating | Hugo

{{ with .Site.GetPage "intro" }}
 {{ .Content }}
{{ end }}

Thanks for the quick response, I already recognized this. It was simply wrong in my post.

Even when closing with end the output is still rendered as plain html.

Solved the problem by using shortcodes.