index.html 737 B

123456789101112131415161718192021
  1. {{ define "main" }}
  2. <main>
  3. <h1 class="text-4xl font-bold">Protocol Oral History Project</h1>
  4. <ul class="flex flex-col gap-4 my-4">
  5. {{ range where .Site.RegularPages "Section" "oral-histories" }}
  6. <li class="border-l border-gray-300 pl-4">
  7. <p class="text-xs text-gray-800"><time datetime="{{ .Date.Format " 2006-01-02" }}">{{ .Date.Format "January 2, 2006" }}</time></p>
  8. <a class="font-bold hover:text-green-900 underline" href="{{ .RelPermalink }}">{{ .Title }}</a>
  9. <p class="text-sm">{{ .Params.summary }}</p>
  10. {{ partial "tags.html" .}}
  11. </li>
  12. {{ end }}
  13. </ul>
  14. <article class="prose lg:prose-xl">
  15. <h2 class="text-4xl">{{ .Title }}</h2>
  16. {{ .Content }}
  17. </article>
  18. </main>
  19. {{ end }}