Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

53 lines
2.5KB

  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. {{ with .Params.slug }}
  15. {{ partial "module-latest.html" (dict "slug" .) }}
  16. <img alt="Minimum Required After Dark Version" src="https://img.shields.io/badge/dynamic/json.svg?url=https://git.habd.as/comfusion/{{ . | safeURL }}/raw/branch/master/package.json&label=after%20dark&query=$..['after-dark']&colorB=000000&style=for-the-badge&longCache=false&maxAge=86400">
  17. {{ if eq . "toxic-swamp" }}
  18. <svg height="34px" fill="#f60" role="presentation" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Monero icon</title><path d="M12 0C5.365 0 0 5.373 0 12.015c0 1.335.228 2.607.618 3.81h3.577V5.729L12 13.545l7.805-7.815v10.095h3.577c.389-1.203.618-2.475.618-3.81C24 5.375 18.635 0 12 0zm-1.788 15.307l-3.417-3.421v6.351H1.758C3.87 21.689 7.678 24 12 24s8.162-2.311 10.245-5.764h-5.04v-6.351l-3.386 3.421-1.788 1.79-1.814-1.79h-.005z"/></svg>
  19. {{ end }}
  20. {{ end }}
  21. {{/* TODO: Allow schema specification by type */}}
  22. {{/* {{ template "_internal/schema.html" . }} */}}
  23. {{ .Content }}
  24. <footer>
  25. <hr>
  26. <p>
  27. Published
  28. {{ with .Params.categories }}
  29. in <span itemprop="articleSection">{{ delimit (apply (apply (sort .) "partial" "category-link.html" ".") "chomp" ".") ", " " and " }}</span>
  30. {{ end }}
  31. {{ with .Params.features }}
  32. using {{ delimit (apply (apply (sort .) "partial" "feature-link.html" ".") "chomp" ".") ", " " and " }}.
  33. {{ else }}
  34. using basic features.
  35. {{ end }}
  36. </p>
  37. {{ partial "post/related-content.html" . }}
  38. </footer>
  39. {{ end }}
  40. {{ define "footer" }}
  41. {{ partial "powered-by.html" . }}
  42. {{ partial "cookie-disclaimer.html" . }}
  43. {{ if in .Page.RelPermalink "toxic-swamp" }}
  44. {{ if eq .Params.slug "toxic-swamp" }}
  45. {{ $config_generator := resources.Get "/js/config-generator.js" }}
  46. <script src="{{ $config_generator.Permalink }}" integrity="{{ ($config_generator | resources.Fingerprint "sha512").Data.Integrity }}"></script>
  47. {{ else if in .Page.RelPermalink "configuration" }}
  48. {{ $configuration := resources.Get "/js/configuration.js" }}
  49. <script src="{{ $configuration.Permalink }}" integrity="{{ ($configuration | resources.Fingerprint "sha512").Data.Integrity }}"></script>
  50. {{ end }}
  51. {{ end }}
  52. {{ end }}