single.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {{ define "title" }}
  2. {{ .Title }} · {{ .Site.Title }}
  3. {{ end }}
  4. {{ define "content" }}
  5. <section class="container post">
  6. <article>
  7. <header>
  8. <div class="post-title">
  9. <h1 class="title">
  10. <a class="title-link" href="{{ .Permalink | safeURL }}">
  11. {{ .Title }}
  12. </a>
  13. </h1>
  14. </div>
  15. <div class="post-meta">
  16. <div class="date">
  17. <span class="posted-on">
  18. <i class="fa fa-calendar" aria-hidden="true"></i>
  19. <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
  20. {{ .Date | time.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}
  21. </time>
  22. </span>
  23. <span class="reading-time">
  24. <i class="fa fa-clock-o" aria-hidden="true"></i>
  25. {{ i18n "reading_time" .ReadingTime }}
  26. </span>
  27. </div>
  28. {{ with .GetTerms "authors" }}{{ partial "taxonomy/authors.html" . }}{{ end }}
  29. {{ with .GetTerms "categories" }}{{ partial "taxonomy/categories.html" . }}{{ end }}
  30. {{ with .GetTerms "tags" }}{{ partial "taxonomy/tags.html" . }}{{ end }}
  31. </div>
  32. </header>
  33. <div class="post-content">
  34. {{ if .Params.featuredImage }}
  35. <img src="{{ .Params.featuredImage | relURL }}" alt="Featured image"/>
  36. {{ end }}
  37. {{ .Content }}
  38. </div>
  39. <footer>
  40. {{ partial "posts/series.html" . }}
  41. {{ partial "posts/disqus.html" . }}
  42. {{ partial "posts/commento.html" . }}
  43. {{ partial "posts/utterances.html" . }}
  44. {{ partial "posts/giscus.html" . }}
  45. {{ partial "posts/telegram.html" . }}
  46. </footer>
  47. </article>
  48. {{ partial "posts/math.html" . }}
  49. </section>
  50. {{ end }}