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.

119 lines
5.7 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. Hugo Dark Theme Site Generator | {{ .Params.title }}
  17. {{- end }}
  18. {{ define "header" }}
  19. {{ partial "masthead.html" . }}
  20. {{ end }}
  21. {{ define "main" }}
  22. {{ with resources.Get "css/conditional/layout/landing.css" | minify }}
  23. <style>{{ .Content | safeCSS }}</style>
  24. {{ end }}
  25. <header>
  26. <h1>{{ .Title }}<sup class="muted">v{{ .Site.Data.npm.latest.version }}</sup></h1>
  27. <h2 class="muted">Hugo Dark Theme Site Generator</h2>
  28. </header>
  29. <section class="grid logo">
  30. <a class="cell -12of12" rel="author" target="_self" href="https://habd.as/code/after-dark/">
  31. <svg class="shaded animated" viewBox="0 0 46 45" width="92" height="90" xmlns="http://www.w3.org/2000/svg">
  32. <title>After Dark</title>
  33. <path d="M.708 45L23 .416 45.292 45H.708zM35 38L23 19 11 38h24z" fill="#000"/>
  34. </svg>
  35. </a>
  36. </section>
  37. <section class="grid tagline">
  38. <div class="cell -12of12">
  39. <p>{{ .Description }}</p>
  40. </div>
  41. </section>
  42. <section class="install cta">
  43. {{ .Content }}
  44. </section>
  45. <section class="hero">
  46. {{ partial "components/figure.html" (dict "alt" "After Dark screenshots" "src" "/images/minimal-mac_2400x1800-fs8.png" "lqipsrc" "/images/minimal-mac_800x600-fs8.png") }}
  47. </section>
  48. {{ range .Params.spotlight }}
  49. <section id="feature-{{ .name }}" class="{{ if eq .name "workflow" }}capabilities{{ else }}feature{{ end }}">
  50. {{ with .icon }}
  51. {{ (resources.Get (printf "svg/vendor/bytesize-icons/%s.svg" .)).Content | safeHTML }}
  52. {{ end }}
  53. <h2{{ if eq .beta true }} style="margin-bottom:0.2rem"{{ end }}>{{ .title | title }}</h2>
  54. {{ if eq .beta true }}
  55. <small><i style="color:lime">(Now in Beta!)</i></small>
  56. {{ end }}
  57. {{ if eq .name "workflow" }}
  58. <table>
  59. <caption>{{ .description | markdownify }}</caption>
  60. <tr>
  61. <th scope="col" width="25%">Features</th>
  62. <th scope="col" width="25%">Modules</th>
  63. <th scope="col" width="25%">Shortcodes</th>
  64. <th scope="col" width="25%">Extras</th>
  65. </tr>
  66. <tr>
  67. <td><a href="./feature/">40</a></td>
  68. <td><a href="./module/">4</a></td>
  69. <td><a href="./shortcode/">27+</a></td>
  70. <td><a href="./extra/">2</a></td>
  71. </tr>
  72. </table>
  73. {{ else }}
  74. <p>{{ .description | markdownify }}</p>
  75. <ul>{{ range .link }}
  76. <li><a href="{{ .href }}"{{ with .target }} target="{{ . }}"{{ end }}{{ with .rel }} rel="{{ . }}"{{ end }}>{{ .text }}</a>
  77. {{ end }}</ul>
  78. {{ end }}
  79. </section>
  80. {{ end }}
  81. <footer>
  82. <section class="grid cta">
  83. <a target="_self" class="cell -2of12" itemtype="significantLink" rel="prefetch noreferrer" href="https://t.me/afterdarkupdates">
  84. <svg id="updates" aria-lebelledby="updates-label" class="i-bell" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
  85. <path d="M8 17 C8 12 9 6 16 6 23 6 24 12 24 17 24 22 27 25 27 25 L5 25 C5 25 8 22 8 17 Z M20 25 C20 25 20 29 16 29 12 29 12 25 12 25 M16 3 L16 6" />
  86. </svg>
  87. <small role="tooltip" id="updates-label">Updates</small>
  88. </a>
  89. <a target="_self" class="cell -2of12" itemtype="significantLink" rel="prefetch" href="https://git.habd.as/comfusion/after-dark/">
  90. <svg id="source" aria-labelledby="source-label" class="i-code" viewBox="0 0 32 32" width="32" height="32" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
  91. <path d="M10 9 L3 17 10 25 M22 9 L29 17 22 25 M18 7 L14 27" />
  92. </svg>
  93. <small role="tooltip" id="source-label">Source</small>
  94. </a>
  95. <a target="_blank" class="cell -2of12" itemtype="significantLink" rel="noopener noreferrer nofollow" href="irc://chat.freenode.net:6667/after-dark">
  96. <svg id="chat" aria-labelledby="chat-label" class="i-message" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
  97. <path d="M2 4 L30 4 30 22 16 22 8 29 8 22 2 22 Z" />
  98. </svg>
  99. <small role="tooltip" id="chat-label">Chat</small>
  100. </a>
  101. <a target="_self" class="cell -2of12" itemtype="significantLink" rel="prefetch" href="https://git.habd.as/comfusion/after-dark/releases">
  102. <svg id="download" aria-labelledby="download-label" class="i-download" viewBox="0 0 32 32" width="32" height="32" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
  103. <path d="M9 22 C0 23 1 12 9 13 6 2 23 2 22 10 32 7 32 23 23 22 M11 26 L16 30 21 26 M16 16 L16 30" />
  104. </svg>
  105. <small role="tooltip" id="download-label">Download</small>
  106. </a>
  107. </section>
  108. </footer>
  109. {{ end }}
  110. {{ define "footer" }}
  111. <small class="muted">
  112. {{ partial "copyright-notice.html" . }}
  113. </small>
  114. {{ end }}