Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

single.html 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. {{ define "header" }}
  2. {{/* We can override any block in the baseof file be defining it in the template */}}
  3. {{ partial "page-header.html" . }}
  4. {{ end }}
  5. {{ define "main" }}
  6. <article class="flex-l flex-wrap justify-between mw8 center">
  7. <header class="mt4 w-100">
  8. <p class="f6 b helvetica tracked">
  9. {{/*
  10. CurrentSection allows us to use the section title instead of inferring from the folder.
  11. https://gohugo.io/variables/page/#section-variables-and-methods
  12. */}}
  13. {{with .CurrentSection.Title }}{{. | upper }}{{end}}
  14. </p>
  15. <h1 class="f1 athelas mb1">
  16. {{- .Title -}}
  17. </h1>
  18. {{/* Hugo uses Go's date formatting is set by example. Here are two formats */}}
  19. <time class="f6 mv4 dib tracked" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
  20. {{- .Date.Format "January 2, 2006" -}}
  21. </time>
  22. </header>
  23. <main class="nested-copy-line-height lh-copy serif f4 nested-links nested-img mid-gray pr4-l w-two-thirds-l">
  24. {{- .Content -}}
  25. {{- partial "tags.html" . -}}
  26. <div class="mt6">
  27. {{ template "_internal/disqus.html" . }}
  28. </div>
  29. </main>
  30. <aside class="w-30-l mt6-l">
  31. {{- partial "menu-contextual.html" . -}}
  32. </aside>
  33. </article>
  34. {{ end }}