index.html 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. {{ partial "header.html" . }}
  2. <main id="content" role="main">
  3. <div class="postindex">
  4. {{ range where .Paginator.Pages "Type" "posts" }}
  5. <article class="h-entry post-text" itemscope itemtype="http://schema.org/Blog">
  6. <header>
  7. <h1 class="p-name entry-title" itemprop="headline">
  8. <a href="{{ .RelPermalink }}" class="u-url">{{ .Title }}</a>
  9. </h1>
  10. </header>
  11. <div class="e-content entry-content">
  12. {{ .Content }}
  13. </div>
  14. <small class="dateline">Posted: <time class="published dt-published" itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2006-01-02" }}</time></small>
  15. | <small class="commentline"><a href="{{ .RelPermalink }}#isso-thread">Comments</a></small>
  16. </article>
  17. </article>
  18. {{ end }}
  19. </div>
  20. <nav class="postindexpager">
  21. <ul class="pager clearfix">
  22. {{ if .Paginator.HasPrev }}
  23. <li class="previous">
  24. <a href="{{ .Paginator.Prev.URL }}">&larr; Newer posts</a>
  25. </li>
  26. {{ end }}
  27. {{ if .Paginator.HasNext }}
  28. <li class="next">
  29. <a href="{{ .Paginator.Next.URL }}">Older posts &rarr;</a>
  30. </li>
  31. {{ end }}
  32. </ul>
  33. </nav>
  34. </main>
  35. {{ partial "footer.html" . }}