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.

51 lines
1.7KB

  1. {{ define "title" -}}
  2. {{ .Title }} | {{ .Site.Title }}
  3. {{- end }}
  4. {{ define "header" }}
  5. {{ partial "masthead.html" . }}
  6. {{ end }}
  7. {{ define "main" }}
  8. <header>
  9. <h1>{{ .Title }}</h1>
  10. {{ if .Description }}
  11. <blockquote itemprop="description">{{ .Description }}</blockquote>
  12. {{ end }}
  13. </header>
  14. {{/* TODO: Allow schema specification by type */}}
  15. {{/* {{ template "_internal/schema.html" . }} */}}
  16. <style>
  17. dt, dd { display: inline; margin-left: 0; }
  18. </style>
  19. {{ with .Params.html_attributes }}
  20. <div><dt><b>HTML attributes:</b> {{ delimit (apply (apply (sort .) "partial" "definition-data.html" ".") "chomp" ".") ", " }}</div>
  21. {{ else }}
  22. <div><dt><b>HTML attributes:</b> <dd>None available</div>
  23. {{ end }}
  24. </table>
  25. {{ with .Params.custom_attributes }}
  26. <div><dt><b>Custom attributes:</b> {{ delimit (apply (apply (sort .) "partial" "definition-data.html" ".") "chomp" ".") ", " }}</div>
  27. {{ else }}
  28. <div><dt><b>Custom attributes:</b> <dd>None available</div>
  29. {{ end }}
  30. {{ .Content }}
  31. <footer>
  32. <hr>
  33. <p>
  34. Published
  35. {{ with .Params.categories }}
  36. in <span itemprop="articleSection">{{ delimit (apply (apply (sort .) "partial" "category-link.html" ".") "chomp" ".") ", " " and " }}</span>
  37. {{ end }}
  38. {{ with .Params.snippets_used }}
  39. using {{ delimit (apply (apply (sort .) "partial" "shortcode-link.html" ".") "chomp" ".") ", " " and " }} shortcodes.
  40. {{ else }}
  41. and used alone.
  42. {{ end }}
  43. </p>
  44. {{ partial "post/related-content.html" . }}
  45. </footer>
  46. {{ end }}
  47. {{ define "footer" }}
  48. {{ partial "powered-by.html" . }}
  49. {{ partial "cookie-disclaimer.html" . }}
  50. {{ end }}