we screw up sometimes but they're usually fun stories
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.

36 lines
1.1 KiB

  1. {{ $page := .Page }}
  2. <article class="single" itemscope itemtype="http://schema.org/BlogPosting">
  3. <div class="meta">
  4. {{ if not .Page.Date.IsZero }}
  5. <span class="key">published on</span>
  6. <span class="val"><time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 02, 2006" }}</time></span>
  7. {{ end }}
  8. {{ with .Params.author }}
  9. <br>
  10. <span class="key">author:</span>
  11. <span class="val">{{ . }}</span>
  12. {{ end }}
  13. {{ with .Params.categories }}
  14. <span class="key">{{ if $page.Date.IsZero }}published {{ end }}in</span>
  15. <span class="val">
  16. {{ range . }}
  17. <a href="{{ . | printf "categories/%s" | relURL }}">{{ . }}</a>
  18. {{ end }}
  19. </span>
  20. {{ end }}
  21. {{ with .Params.tags }}
  22. <br>
  23. <span class="key">tags:</span>
  24. <span class="val">
  25. {{ range . }}
  26. <a href="{{ . | printf "tags/%s" | relURL }}">{{ . }}</a>
  27. {{ end }}
  28. </span>
  29. {{ end }}
  30. </div>
  31. <h1 class="headline" itemprop="headline">{{ .Title }}</h1>
  32. <section class="body" itemprop="articleBody">
  33. {{ .Content }}
  34. </section>
  35. </article>