Getting a specific page in Hugo


Sat Nov 28 2020


When using Hugo static site generator you can add specific content to your html. You can use the following function

{{ with .GetPage "/path/to/page.md" }}{{ .Title }}{{ end }}

In this case the title of your page is displayed in your html.