Implement mainSections for home page and replace .Data.Pages with alias .Pages.

This commit is contained in:
Fredrik Jonsson 2019-08-16 13:05:43 +02:00
commit a942441544

View file

@ -3,7 +3,7 @@
<h1 class="title">Micro posts</h1>
<p class="micro__follow"><a href="https://micro.blog/{{ with $.Param "microusername" }}{{ . }}{{ end }}">{{ i18n "string_follow" }} @{{ with $.Param "microusername" }}{{ . }}{{ end }}</a></p>
{{ $paginator := .Paginate (.Data.Pages) -}}
{{ $paginator := .Paginate (.Pages) -}}
{{ range $paginator.Pages -}}
{{ .Render "summary"}}
{{ end -}}