You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

single.html 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {{ define "header" }}{{ partial "page-header.html" . }}{{ end }}
  2. {{ define "main" }}
  3. {{ $currentPageUrl := .URL }}
  4. <article class="center cf pv5 measure-wide-l">
  5. <h4 class="f6">
  6. {{ humanize .Section | upper }}
  7. </h4>
  8. <h1>
  9. {{ .Title }}
  10. </h1>
  11. <div class="nested-copy-line-height nested-links nested-img mid-gray measure-wide-l">
  12. {{ .Content | markdownify }}
  13. </div>
  14. {{ if .Params.tags }}
  15. <div class="mt5 f6 gray nested-lh-copy bg-light-gray ph3 pv2 measure-wide-l">
  16. {{ $name := index .Params.tags 0 }}
  17. {{ $name := $name | urlize }}
  18. {{ $tags := index .Site.Taxonomies.tags $name }}
  19. <ul class="list dib nested-links ml0 pl0">
  20. <li class="dib mb2 mr2">Related:</li>
  21. {{ range $tags.Pages }}
  22. {{ if ne .URL $currentPageUrl }}
  23. <li class="mb2 mr3">
  24. <a href="{{ .URL }}" class="link">
  25. {{ .LinkTitle }}
  26. </a>
  27. </li>
  28. {{ end }}
  29. {{end}}
  30. </ul>
  31. </div>
  32. {{end}}
  33. <div class="gray f6 mv6">
  34. Last Update: {{ .Lastmod.Format "January 2, 2006" }}
  35. </div>
  36. </article>
  37. {{ end }}