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.

68 lines
2.3 KiB

4 years ago
  1. {{/*
  2. Copyright (C) 2019 Josh Habdas <jhabdas@protonmail.com>
  3. This file is part of After Dark.
  4. After Dark is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU Affero General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. After Dark is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU Affero General Public License for more details.
  12. You should have received a copy of the GNU Affero General Public License
  13. along with this program. If not, see <https://www.gnu.org/licenses/>.
  14. */}}
  15. {{ define "title" -}}
  16. {{ .Title }} | {{ .Site.Title }}
  17. {{- end }}
  18. {{ define "header" }}
  19. {{ partial "masthead.html" . }}
  20. {{ end }}
  21. {{ define "main" }}
  22. <header>
  23. <h1>{{ .Title }}</h1>
  24. {{ if .Description }}
  25. <blockquote itemprop="description">{{ .Description }}</blockquote>
  26. {{ end }}
  27. </header>
  28. <style>
  29. dt, dd { display: inline; margin-left: 0; }
  30. </style>
  31. {{ with .Params.html_attributes }}
  32. <div><dt><b>HTML attributes:</b> {{ delimit (apply (apply (sort .) "partial" "definition-data.html" ".") "chomp" ".") ", " }}</div>
  33. {{ else }}
  34. <div><dt><b>HTML attributes:</b> <dd>None available</div>
  35. {{ end }}
  36. </table>
  37. {{ with .Params.custom_attributes }}
  38. <div><dt><b>Custom attributes:</b> {{ delimit (apply (apply (sort .) "partial" "definition-data.html" ".") "chomp" ".") ", " }}</div>
  39. {{ else }}
  40. <div><dt><b>Custom attributes:</b> <dd>None available</div>
  41. {{ end }}
  42. {{ .Content }}
  43. <footer>
  44. <hr>
  45. <p>
  46. Published
  47. {{ with .Params.categories }}
  48. in <span itemprop="articleSection">{{ delimit (apply (apply (sort .) "partial" "category-link.html" ".") "chomp" ".") ", " " and " }}</span>
  49. {{ end }}
  50. {{ with .Params.snippets_used }}
  51. using {{ delimit (apply (apply (sort .) "partial" "shortcode-link.html" ".") "chomp" ".") ", " " and " }} shortcodes.
  52. {{ else }}
  53. and used alone.
  54. {{ end }}
  55. </p>
  56. {{ partial "post/related-content.html" . }}
  57. </footer>
  58. {{ end }}
  59. {{ define "footer" }}
  60. <small class="muted">
  61. {{ partial "copyright-notice.html" . }}
  62. </small>
  63. {{ end }}