Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

59 lines
1.4KB

  1. <!DOCTYPE html>
  2. <html>
  3. {{ partial "header.html" . }}
  4. <body>
  5. <div class="container wrapper">
  6. {{ partial "head.html" . }}
  7. <div class="post">
  8. <div class="post-header">
  9. {{ if ne .Date.Year 1 }}
  10. <div class="meta">
  11. <div class="date">
  12. <span class="day">{{ dateFormat "02" .Date }}</span>
  13. <span class="rest">{{ dateFormat "Jan 2006" .Date }}</span>
  14. </div>
  15. </div>
  16. {{ end }}
  17. <div class="matter">
  18. <h1 class="title">{{ .Title }}</h1>
  19. </div>
  20. </div>
  21. <div class="markdown">
  22. {{ .Content }}
  23. </div>
  24. <div class="tags">
  25. {{ if ne .Type "page" }}
  26. {{ if gt .Params.tags 0 }}
  27. <ul class="flat">
  28. {{ range .Params.tags }}
  29. <li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li>
  30. {{ end }}
  31. </ul>
  32. {{ end }}
  33. {{ end }}
  34. </div>
  35. {{- $.Scratch.Set "isDisqus" true -}}
  36. {{- if and (isset .Params "type") (in .Site.Params.disableDisqusTypes .Params.type) -}}
  37. {{- $.Scratch.Set "isDisqus" false -}}
  38. {{- end -}}
  39. {{- if and (isset .Params "disqus") (eq .Params.disqus false) -}}
  40. {{- $.Scratch.Set "isDisqus" false -}}
  41. {{- else if and (isset .Params "disqus") (eq .Params.disqus true) -}}
  42. {{- $.Scratch.Set "isDisqus" true -}}
  43. {{- end -}}
  44. {{- if eq ($.Scratch.Get "isDisqus") true -}}
  45. {{- partial "disqus.html" . -}}
  46. {{- end -}}
  47. </div>
  48. </div>
  49. {{ partial "footer.html" . }}
  50. </body>
  51. </html>