0

I found a similar problem but the solution posted doesn't work for me:

Hugo post directory appearing on homepage, but not posts

Perhaps as it's because I'm using a different Hugo theme?

https://github.com/invinciblycool/lekh

In the demo posts appear on the homepage, but using the latest version of Hugo, only my post directory appears on the homepage.

This is the list HTML code:

<!DOCTYPE html>
<html>
{{ partial "head.html" . }}

<body>
  {{ partial "page_header.html" . }}

  <h3>Posts</h3>

  <div>

    <!-- orders content according to the "publishdate" field in front matter -->
    {{ range .Pages.ByPublishDate }}
    <div>
      <a href="{{ .Permalink }}">{{ .Title }}</a><br />
      <time>{{ .Date.Format "January 2, 2006" }}</time>
    </div>
    <br />
    {{ end }}
  </div>
</body>

</html>
runar
  • 2,667
  • 2
  • 15
  • 23

0 Answers0