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.

65 satır
2.4KB

  1. {{/*
  2. Copyright (C) 2019 Josh Habdas <[email protected]>
  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 "header" }}
  16. {{ partial "masthead.html" . }}
  17. {{ end }}
  18. {{ define "main" }}
  19. {{ if ne $.Site.Params.hackcss.disabled true }}
  20. {{ with resources.Get "css/conditional/layouts/post/single.css" | minify }}
  21. <style>{{ .Content | safeCSS }}</style>
  22. {{ end }}
  23. {{ end }}
  24. <article class="h-entry" itemscope itemtype="https://schema.org/BlogPosting">
  25. {{ template "_internal/schema.html" . }}
  26. <header>
  27. <h1 class="post-title p-name" itemprop="headline name">{{ .Title }}</h1>
  28. <p class="muted">
  29. {{ partial "post/meta.html" . }}
  30. </p>
  31. {{ if .Description }}
  32. <blockquote itemprop="description">{{ .Description }}</blockquote>
  33. {{ end }}
  34. {{ partial "image/header.html" . }}
  35. </header>
  36. {{ partial "toc-maybe.html" . }}
  37. <div class="post-content clearfix e-content" itemprop="articleBody">
  38. {{ .Content }}
  39. </div>
  40. <footer>
  41. <hr>
  42. <a style="margin-right:2px;" class="u-url no-underline"
  43. href="https://www.addtoany.com/share#url={{ .Permalink }}{{ with .Title }}&title={{ . }}{{ end }}">
  44. <svg style="margin-bottom: -3px" class="i-external" viewBox="0 0 32 32" width="16" height="16" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
  45. <path d="M14 9 L3 9 3 29 23 29 23 18 M18 4 L28 4 28 14 M28 4 L14 18"></path>
  46. </svg>
  47. Share
  48. </a>
  49. {{ partial "post/byline.html" . }}
  50. {{ partial "post/related-content.html" . }}
  51. {{ partial "post/comment.html" . }}
  52. </footer>
  53. </article>
  54. {{ end }}
  55. {{ define "footer" }}
  56. <small class="muted">
  57. {{ partial "copyright-notice.html" . }}
  58. </small>
  59. {{ end }}