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.

52 lines
1.2KB

  1. <!DOCTYPE html>
  2. <html>
  3. {{ partial "header.html" . }}
  4. <body>
  5. <div class="container wrapper list">
  6. {{ partial "head.html" . }}
  7. {{ if isset .Data "Term" }}
  8. <h2>{{ .Data.Term }}</h2>
  9. {{ else }}
  10. <h2 class="page-title">All posts</h2>
  11. {{ end }}
  12. <ul class="posts flat">
  13. {{- range .Data.Pages -}}
  14. {{- if (in (.Site.Params.excludedTypes | default (slice "page")) .Type) -}}
  15. {{- else -}}
  16. <li class="post">
  17. <div class="post-header">
  18. <div class="meta">
  19. <div class="date">
  20. <span class="day">{{ dateFormat "02" .Date }}</span>
  21. <span class="rest">{{ dateFormat "Jan 2006" .Date }}</span>
  22. </div>
  23. </div>
  24. <div class="matter">
  25. <h4 class="title small">
  26. <a href="{{ .RelPermalink }}">{{.Title}}{{ if .Draft }}<sup class="draft-label">DRAFT</sup>{{ end }}</a>
  27. </h4>
  28. <span class="description">
  29. {{ if isset .Params "description" }}
  30. {{ .Description }}
  31. {{ else if gt (len .RawContent) 120 }}
  32. {{ slicestr .RawContent 0 120 }}...
  33. {{ else }}
  34. {{ .RawContent }}
  35. {{ end }}
  36. </span>
  37. </div>
  38. </div>
  39. </li>
  40. {{- end -}}
  41. {{- end -}}
  42. </ul>
  43. </div>
  44. {{ partial "footer.html" . }}
  45. </body>
  46. </html>