Friday, January 22, 2016

Hugo single page index:

Hugo by default lists all posts or contents of pages with name on the mainpage.

When you have multiple files in various folders, it tries to list them all.

When you just want to display single on the content/ root, use the following code on layouts/index.html.

          {{ range where .Site.Pages "RelPermalink" "/_index/" }}
          {{ end }}

No comments: