Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

12345678910111213141516171819202122232425262728
  1. {{ partial "header" . }}
  2. <main>
  3. <div>
  4. <h2>{{ .Title }}</h2>
  5. <h5>{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006") }}</h5>
  6. {{ partial "tags" . }}
  7. </div>
  8. <div align="start" class="content">{{ .Content }}</div>
  9. <!-- Related posts -->
  10. {{ $related := first 3 (where (where (where .Site.Pages.ByDate.Reverse ".Type" "==" "post") ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }}
  11. {{ if $related }}
  12. <h4 class="page-header">Related</h4>
  13. {{ range $related }} {{ partial "list-item" . }} {{ end }}
  14. {{ end }}
  15. <!-- Disquis comments -->
  16. {{ if and .Site.DisqusShortname (not .Params.disableComments) }}
  17. <h4 class="page-header">Comments</h4>
  18. {{ template "_internal/disqus.html" . }}
  19. {{ end }}
  20. </main>
  21. {{ partial "footer" . }}