Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. {{ $section := .Site.GetPage "section" .Section }}
  7. <article class="flex-l flex-wrap justify-between mw8 center ph3">
  8. <header class="mt4 w-100">
  9. <aside class="instapaper_ignoref b helvetica tracked">
  10. {{/*
  11. CurrentSection allows us to use the section title instead of inferring from the folder.
  12. https://gohugo.io/variables/page/#section-variables-and-methods
  13. */}}
  14. {{with .CurrentSection.Title }}{{. | upper }}{{end}}
  15. </aside>
  16. <h1 class="f1 athelas mb1">
  17. {{- .Title -}}
  18. </h1>
  19. {{ with .Params.author }}
  20. <p class="tracked">
  21. By <strong>
  22. {{ if reflect.IsSlice . }}
  23. {{ delimit . ", " | markdownify }}
  24. {{else}}
  25. {{ . | markdownify }}
  26. {{ end }}
  27. </strong>
  28. </p>
  29. {{ end }}
  30. {{/* Hugo uses Go's date formatting is set by example. Here are two formats */}}
  31. <time class="f6 mv4 dib tracked" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
  32. {{- .Date.Format "January 2, 2006" -}}
  33. </time>
  34. {{/*
  35. Show "reading time" and "word count" but only if one of the following are true:
  36. 1) A global config `params` value is set `show_reading_time = true`
  37. 2) A section front matter value is set `show_reading_time = true`
  38. 3) A page front matter value is set `show_reading_time = true`
  39. */}}
  40. {{ if (or (eq (.Param "show_reading_time") true) (eq $section.Params.show_reading_time true) )}}
  41. <span class="f6 mv4 dib tracked"> - {{ .ReadingTime}} minutes read</span>
  42. <span class="f6 mv4 dib tracked"> - {{ .WordCount}} words</span>
  43. {{ end }}
  44. </header>
  45. <div class="nested-copy-line-height lh-copy serif f4 nested-links nested-img mid-gray pr4-l w-two-thirds-l">
  46. {{- .Content -}}
  47. {{- partial "tags.html" . -}}
  48. <div class="mt6 instapaper_ignoref">
  49. {{ if .Site.DisqusShortname }}
  50. {{ template "_internal/disqus.html" . }}
  51. {{ end }}
  52. {{ if .Site.Params.commentoEnable }}
  53. {{- partial "commento.html" . -}}
  54. {{ end }}
  55. </div>
  56. </div>
  57. <aside class="w-30-l mt6-l">
  58. {{- partial "menu-contextual.html" . -}}
  59. </aside>
  60. </article>
  61. {{ end }}