Portfolio md into my index.html with site.getpage

I am currently using the Hugo Awesome Blog Theme. It’s front page is index.html. I have a markdown file that has a gallery of images of my portfolio. I am trying to get the contents of that page to show in my index.html page using the code below;

{{ with .Site.GetPage "content/portfolio" }}
  {{ .Content }}
{{ end }}

I am not having any success with it. If you can let me know how I can pull this off, it would be awesome. Thanks.

Nevermind… I feel silly.

I just fetched content from the md file I need with

{{ . Content }}

Then changed my portfolio.md into an _index.md…

problem solved.

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