You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
540 B

10 years ago
  1. <nav id="post-nav">
  2. {{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
  3. {{ if .Paginator.HasPrev }}
  4. <span class="prev">
  5. <a href="{{.Paginator.Prev.URL}}">
  6. <span class="arrow"></span> Newer Posts
  7. </a>
  8. </span>
  9. {{ end }}
  10. {{ if .Paginator.HasNext }}
  11. <span class="next">
  12. <a href="{{.Paginator.Next.URL}}">
  13. Older Posts <span class="arrow"></span>
  14. </a>
  15. </span>
  16. {{ end }}
  17. {{ end }}
  18. </nav>