@thegetty/quire-cli 0.20.3 → 0.20.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (370) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/bin/.DS_Store +0 -0
  3. package/bin/go-iiif/.DS_Store +0 -0
  4. package/bin/index.js +2 -0
  5. package/bin/starters/.DS_Store +0 -0
  6. package/bin/starters/README.md +0 -0
  7. package/bin/starters/default/.circleci/config.yml +98 -0
  8. package/bin/starters/default/.gitignore +14 -0
  9. package/bin/starters/default/.nojekyll +0 -0
  10. package/bin/starters/default/CHANGELOG.md +38 -0
  11. package/bin/starters/default/README.md +25 -0
  12. package/bin/starters/default/bin/deploy.sh +25 -0
  13. package/bin/starters/default/config/_default/config.yml +53 -0
  14. package/bin/starters/default/config/development/config.yml +14 -0
  15. package/bin/starters/default/config/environments/dev.yml +14 -0
  16. package/bin/starters/default/config/environments/github.yml +15 -0
  17. package/bin/starters/default/config/environments/netlify.yml +18 -0
  18. package/bin/starters/default/config/epub.yml +15 -0
  19. package/bin/starters/default/config/pdf.yml +16 -0
  20. package/bin/starters/default/config/site.yml +13 -0
  21. package/bin/starters/default/config.yml +53 -0
  22. package/bin/starters/default/content/about.md +20 -0
  23. package/bin/starters/default/content/bibliography.md +7 -0
  24. package/bin/starters/default/content/catalogue/1.md +28 -0
  25. package/bin/starters/default/content/catalogue/2.md +29 -0
  26. package/bin/starters/default/content/catalogue/3.md +20 -0
  27. package/bin/starters/default/content/catalogue/4.md +22 -0
  28. package/bin/starters/default/content/catalogue/catalogue-index.md +8 -0
  29. package/bin/starters/default/content/contents.md +7 -0
  30. package/bin/starters/default/content/contributors.md +7 -0
  31. package/bin/starters/default/content/cover.md +11 -0
  32. package/bin/starters/default/content/essay.md +80 -0
  33. package/bin/starters/default/content/intro.md +21 -0
  34. package/bin/starters/default/content/search-index.md +8 -0
  35. package/bin/starters/default/data/figures.yml +90 -0
  36. package/bin/starters/default/data/objects.yml +49 -0
  37. package/bin/starters/default/data/publication.yml +149 -0
  38. package/bin/starters/default/data/references.yml +11 -0
  39. package/bin/starters/default/static/css/custom.css +0 -0
  40. package/bin/starters/default/static/data/sample-geojson.json +16 -0
  41. package/bin/starters/default/static/downloads/.gitkeep +0 -0
  42. package/bin/starters/default/static/downloads/output.epub +0 -0
  43. package/bin/starters/default/static/downloads/output.mobi +0 -0
  44. package/bin/starters/default/static/downloads/output.pdf +0 -0
  45. package/bin/starters/default/static/img/contributors/judith-keller.jpg +0 -0
  46. package/bin/starters/default/static/img/cover.png +0 -0
  47. package/bin/starters/default/static/img/figures/duo.jpg +0 -0
  48. package/bin/starters/default/static/img/figures/evans-burroughs.jpg +0 -0
  49. package/bin/starters/default/static/img/figures/evans-child.jpg +0 -0
  50. package/bin/starters/default/static/img/figures/evans-graveyard.jpg +0 -0
  51. package/bin/starters/default/static/img/figures/evans-hymns.jpg +0 -0
  52. package/bin/starters/default/static/img/figures/evans-legionnaire.jpg +0 -0
  53. package/bin/starters/default/static/img/figures/evans-refugee.jpg +0 -0
  54. package/bin/starters/default/static/img/figures/evans-sons.jpg +0 -0
  55. package/bin/starters/default/static/img/figures/evans-video-still.jpg +0 -0
  56. package/bin/starters/default/static/img/figures/evans-washroom.jpg +0 -0
  57. package/bin/starters/default/static/img/figures/evans.jpg +0 -0
  58. package/bin/starters/default/static/img/figures/family.jpg +0 -0
  59. package/bin/starters/default/static/img/figures/lange-house.jpg +0 -0
  60. package/bin/starters/default/static/img/figures/lange.jpg +0 -0
  61. package/bin/starters/default/static/img/figures/mother-b.jpg +0 -0
  62. package/bin/starters/default/static/img/figures/mother-c.jpg +0 -0
  63. package/bin/starters/default/static/img/figures/mother.jpg +0 -0
  64. package/bin/starters/default/static/img/figures/pickers.jpg +0 -0
  65. package/bin/starters/default/static/img/logo-getty.png +0 -0
  66. package/bin/starters/default/static/img/pattern-spiral-overlay.png +0 -0
  67. package/bin/starters/default/static/js/custom.js +4 -0
  68. package/bin/themes/README.md +0 -0
  69. package/bin/themes/default/.circleci/config.yml +62 -0
  70. package/bin/themes/default/.eslintrc.js +16 -0
  71. package/bin/themes/default/.gitignore +13 -0
  72. package/bin/themes/default/.scss-lint.yml +239 -0
  73. package/bin/themes/default/CHANGELOG.md +73 -0
  74. package/bin/themes/default/LICENSE.md +20 -0
  75. package/bin/themes/default/README.md +112 -0
  76. package/bin/themes/default/archetypes/default.md +2 -0
  77. package/bin/themes/default/cypress.json +7 -0
  78. package/bin/themes/default/layouts/404.html +0 -0
  79. package/bin/themes/default/layouts/_default/baseof.html +43 -0
  80. package/bin/themes/default/layouts/_default/single.html +26 -0
  81. package/bin/themes/default/layouts/contents/single.html +37 -0
  82. package/bin/themes/default/layouts/cover/single.html +128 -0
  83. package/bin/themes/default/layouts/data/search-index.html +65 -0
  84. package/bin/themes/default/layouts/entry/single.html +372 -0
  85. package/bin/themes/default/layouts/essay/single.html +24 -0
  86. package/bin/themes/default/layouts/partials/analytics.html +29 -0
  87. package/bin/themes/default/layouts/partials/cite-this.html +348 -0
  88. package/bin/themes/default/layouts/partials/contents-list/card-image.html +13 -0
  89. package/bin/themes/default/layouts/partials/contents-list/closing-tags.html +59 -0
  90. package/bin/themes/default/layouts/partials/contents-list/contents-list.html +179 -0
  91. package/bin/themes/default/layouts/partials/contents-list/file-dir.html +7 -0
  92. package/bin/themes/default/layouts/partials/contents-list/file-path.html +10 -0
  93. package/bin/themes/default/layouts/partials/contents-list/list-item-type.html +9 -0
  94. package/bin/themes/default/layouts/partials/contents-list/list-item-types/abstract.html +17 -0
  95. package/bin/themes/default/layouts/partials/contents-list/list-item-types/brief.html +7 -0
  96. package/bin/themes/default/layouts/partials/contents-list/list-item-types/default.html +9 -0
  97. package/bin/themes/default/layouts/partials/contents-list/list-item-types/grid.html +30 -0
  98. package/bin/themes/default/layouts/partials/contents-list/section-heading.html +5 -0
  99. package/bin/themes/default/layouts/partials/contents-list.html +207 -0
  100. package/bin/themes/default/layouts/partials/contributor-info.html +78 -0
  101. package/bin/themes/default/layouts/partials/contributor-list.html +102 -0
  102. package/bin/themes/default/layouts/partials/copyright.html +155 -0
  103. package/bin/themes/default/layouts/partials/debug-contents.html +8 -0
  104. package/bin/themes/default/layouts/partials/dublin-core.html +21 -0
  105. package/bin/themes/default/layouts/partials/error-message.html +19 -0
  106. package/bin/themes/default/layouts/partials/figure-caption.html +1 -0
  107. package/bin/themes/default/layouts/partials/figure-fallback.html +31 -0
  108. package/bin/themes/default/layouts/partials/figure-image.html +44 -0
  109. package/bin/themes/default/layouts/partials/figure-label.html +15 -0
  110. package/bin/themes/default/layouts/partials/figure-soundcloud.html +25 -0
  111. package/bin/themes/default/layouts/partials/figure-table.html +44 -0
  112. package/bin/themes/default/layouts/partials/figure-vimeo.html +24 -0
  113. package/bin/themes/default/layouts/partials/figure-website.html +21 -0
  114. package/bin/themes/default/layouts/partials/figure-youtube.html +23 -0
  115. package/bin/themes/default/layouts/partials/figures/caption.html +44 -0
  116. package/bin/themes/default/layouts/partials/figures/label.html +35 -0
  117. package/bin/themes/default/layouts/partials/figures/media-types/fallback.html +32 -0
  118. package/bin/themes/default/layouts/partials/figures/media-types/image.html +54 -0
  119. package/bin/themes/default/layouts/partials/figures/media-types/soundcloud.html +35 -0
  120. package/bin/themes/default/layouts/partials/figures/media-types/table.html +53 -0
  121. package/bin/themes/default/layouts/partials/figures/media-types/vimeo.html +34 -0
  122. package/bin/themes/default/layouts/partials/figures/media-types/website.html +24 -0
  123. package/bin/themes/default/layouts/partials/figures/media-types/youtube.html +29 -0
  124. package/bin/themes/default/layouts/partials/footer-buttons.html +29 -0
  125. package/bin/themes/default/layouts/partials/head.html +46 -0
  126. package/bin/themes/default/layouts/partials/icon.html +20 -0
  127. package/bin/themes/default/layouts/partials/icons-cc.html +86 -0
  128. package/bin/themes/default/layouts/partials/icons.html +54 -0
  129. package/bin/themes/default/layouts/partials/json-ld.html +117 -0
  130. package/bin/themes/default/layouts/partials/link-list-arrow.html +16 -0
  131. package/bin/themes/default/layouts/partials/link-list.html +11 -0
  132. package/bin/themes/default/layouts/partials/menu-header.html +25 -0
  133. package/bin/themes/default/layouts/partials/menu.html +69 -0
  134. package/bin/themes/default/layouts/partials/metadata.html +27 -0
  135. package/bin/themes/default/layouts/partials/navbar.html +173 -0
  136. package/bin/themes/default/layouts/partials/open-graph.html +43 -0
  137. package/bin/themes/default/layouts/partials/page-abstract.html +7 -0
  138. package/bin/themes/default/layouts/partials/page-bibliography.html +59 -0
  139. package/bin/themes/default/layouts/partials/page-class.html +9 -0
  140. package/bin/themes/default/layouts/partials/page-contributor.html +48 -0
  141. package/bin/themes/default/layouts/partials/page-header.html +22 -0
  142. package/bin/themes/default/layouts/partials/page-title.html +9 -0
  143. package/bin/themes/default/layouts/partials/page-tombstone.html +36 -0
  144. package/bin/themes/default/layouts/partials/pdf-info.html +20 -0
  145. package/bin/themes/default/layouts/partials/pdf-title-pages.html +39 -0
  146. package/bin/themes/default/layouts/partials/scripts.html +5 -0
  147. package/bin/themes/default/layouts/partials/search.html +52 -0
  148. package/bin/themes/default/layouts/partials/site-title.html +9 -0
  149. package/bin/themes/default/layouts/partials/tests/check-node-modules.html +9 -0
  150. package/bin/themes/default/layouts/partials/tests/check-page-one-class.html +21 -0
  151. package/bin/themes/default/layouts/partials/tests/check-page-weights.html +49 -0
  152. package/bin/themes/default/layouts/partials/tests/run.html +13 -0
  153. package/bin/themes/default/layouts/partials/twitter-card.html +23 -0
  154. package/bin/themes/default/layouts/shortcodes/q-bibliography.html +61 -0
  155. package/bin/themes/default/layouts/shortcodes/q-cite.html +79 -0
  156. package/bin/themes/default/layouts/shortcodes/q-class.html +3 -0
  157. package/bin/themes/default/layouts/shortcodes/q-contributor.html +327 -0
  158. package/bin/themes/default/layouts/shortcodes/q-contributors.html +11 -0
  159. package/bin/themes/default/layouts/shortcodes/q-figure-group.html +457 -0
  160. package/bin/themes/default/layouts/shortcodes/q-figure-new.html +70 -0
  161. package/bin/themes/default/layouts/shortcodes/q-figure-zoom.html +408 -0
  162. package/bin/themes/default/layouts/shortcodes/q-figure.html +86 -0
  163. package/bin/themes/default/layouts/sitemap.xml +24 -0
  164. package/bin/themes/default/layouts/splash/single.html +67 -0
  165. package/bin/themes/default/package-lock.json +13198 -0
  166. package/bin/themes/default/package.json +96 -0
  167. package/bin/themes/default/source/css/application.scss +30 -0
  168. package/bin/themes/default/source/css/bulma-components.scss +21 -0
  169. package/bin/themes/default/source/css/colors.scss +16 -0
  170. package/bin/themes/default/source/css/components/_all.scss +15 -0
  171. package/bin/themes/default/source/css/components/container.sass +35 -0
  172. package/bin/themes/default/source/css/components/quire-buttons.scss +95 -0
  173. package/bin/themes/default/source/css/components/quire-citation.scss +77 -0
  174. package/bin/themes/default/source/css/components/quire-contents-list.scss +329 -0
  175. package/bin/themes/default/source/css/components/quire-contributors.scss +131 -0
  176. package/bin/themes/default/source/css/components/quire-copyright.scss +28 -0
  177. package/bin/themes/default/source/css/components/quire-cover.scss +216 -0
  178. package/bin/themes/default/source/css/components/quire-deepzoom.scss +181 -0
  179. package/bin/themes/default/source/css/components/quire-entry.scss +651 -0
  180. package/bin/themes/default/source/css/components/quire-figure.scss +589 -0
  181. package/bin/themes/default/source/css/components/quire-map.scss +17 -0
  182. package/bin/themes/default/source/css/components/quire-menu.scss +209 -0
  183. package/bin/themes/default/source/css/components/quire-navbar.scss +366 -0
  184. package/bin/themes/default/source/css/components/quire-page.scss +920 -0
  185. package/bin/themes/default/source/css/components/quire-popup.scss +233 -0
  186. package/bin/themes/default/source/css/components/quire-search.scss +121 -0
  187. package/bin/themes/default/source/css/epub.scss +549 -0
  188. package/bin/themes/default/source/css/fonts.scss +159 -0
  189. package/bin/themes/default/source/css/layout.scss +186 -0
  190. package/bin/themes/default/source/css/print.scss +613 -0
  191. package/bin/themes/default/source/css/utilities.scss +345 -0
  192. package/bin/themes/default/source/css/variables.scss +144 -0
  193. package/bin/themes/default/source/fonts/ibm-plex-sans-condensed/ibmplexsanscondensed-bold.eot +0 -0
  194. package/bin/themes/default/source/fonts/ibm-plex-sans-condensed/ibmplexsanscondensed-bold.woff +0 -0
  195. package/bin/themes/default/source/fonts/ibm-plex-sans-condensed/ibmplexsanscondensed-bold.woff2 +0 -0
  196. package/bin/themes/default/source/fonts/ibm-plex-sans-condensed/ibmplexsanscondensed-bolditalic.eot +0 -0
  197. package/bin/themes/default/source/fonts/ibm-plex-sans-condensed/ibmplexsanscondensed-bolditalic.woff +0 -0
  198. package/bin/themes/default/source/fonts/ibm-plex-sans-condensed/ibmplexsanscondensed-bolditalic.woff2 +0 -0
  199. package/bin/themes/default/source/fonts/ibm-plex-sans-condensed/ibmplexsanscondensed-italic.eot +0 -0
  200. package/bin/themes/default/source/fonts/ibm-plex-sans-condensed/ibmplexsanscondensed-italic.woff +0 -0
  201. package/bin/themes/default/source/fonts/ibm-plex-sans-condensed/ibmplexsanscondensed-italic.woff2 +0 -0
  202. package/bin/themes/default/source/fonts/ibm-plex-sans-condensed/ibmplexsanscondensed-regular.eot +0 -0
  203. package/bin/themes/default/source/fonts/ibm-plex-sans-condensed/ibmplexsanscondensed-regular.woff +0 -0
  204. package/bin/themes/default/source/fonts/ibm-plex-sans-condensed/ibmplexsanscondensed-regular.woff2 +0 -0
  205. package/bin/themes/default/source/fonts/noto-sans/notosans-bold.eot +0 -0
  206. package/bin/themes/default/source/fonts/noto-sans/notosans-bold.woff +0 -0
  207. package/bin/themes/default/source/fonts/noto-sans/notosans-bold.woff2 +0 -0
  208. package/bin/themes/default/source/fonts/noto-sans/notosans-bolditalic.eot +0 -0
  209. package/bin/themes/default/source/fonts/noto-sans/notosans-bolditalic.woff +0 -0
  210. package/bin/themes/default/source/fonts/noto-sans/notosans-bolditalic.woff2 +0 -0
  211. package/bin/themes/default/source/fonts/noto-sans/notosans-italic.eot +0 -0
  212. package/bin/themes/default/source/fonts/noto-sans/notosans-italic.woff +0 -0
  213. package/bin/themes/default/source/fonts/noto-sans/notosans-italic.woff2 +0 -0
  214. package/bin/themes/default/source/fonts/noto-sans/notosans-regular.eot +0 -0
  215. package/bin/themes/default/source/fonts/noto-sans/notosans-regular.woff +0 -0
  216. package/bin/themes/default/source/fonts/noto-sans/notosans-regular.woff2 +0 -0
  217. package/bin/themes/default/source/fonts/noto-serif/notoserif-bold.eot +0 -0
  218. package/bin/themes/default/source/fonts/noto-serif/notoserif-bold.woff +0 -0
  219. package/bin/themes/default/source/fonts/noto-serif/notoserif-bold.woff2 +0 -0
  220. package/bin/themes/default/source/fonts/noto-serif/notoserif-bolditalic.eot +0 -0
  221. package/bin/themes/default/source/fonts/noto-serif/notoserif-bolditalic.woff +0 -0
  222. package/bin/themes/default/source/fonts/noto-serif/notoserif-bolditalic.woff2 +0 -0
  223. package/bin/themes/default/source/fonts/noto-serif/notoserif-italic.eot +0 -0
  224. package/bin/themes/default/source/fonts/noto-serif/notoserif-italic.woff +0 -0
  225. package/bin/themes/default/source/fonts/noto-serif/notoserif-italic.woff2 +0 -0
  226. package/bin/themes/default/source/fonts/noto-serif/notoserif-regular.eot +0 -0
  227. package/bin/themes/default/source/fonts/noto-serif/notoserif-regular.woff +0 -0
  228. package/bin/themes/default/source/fonts/noto-serif/notoserif-regular.woff2 +0 -0
  229. package/bin/themes/default/source/img/cover.png +0 -0
  230. package/bin/themes/default/source/img/fullscreen.png +0 -0
  231. package/bin/themes/default/source/img/icons/arrow_forward.png +0 -0
  232. package/bin/themes/default/source/img/icons/baseline-headset-24px.png +0 -0
  233. package/bin/themes/default/source/img/icons/baseline-videocam-24px.png +0 -0
  234. package/bin/themes/default/source/img/icons/baseline-website-24px.png +0 -0
  235. package/bin/themes/default/source/img/icons/cc-by-nc-nd.png +0 -0
  236. package/bin/themes/default/source/img/icons/cc-by-nc-sa.png +0 -0
  237. package/bin/themes/default/source/img/icons/cc-by-nc.png +0 -0
  238. package/bin/themes/default/source/img/icons/cc-by-nd.png +0 -0
  239. package/bin/themes/default/source/img/icons/cc-by-sa.png +0 -0
  240. package/bin/themes/default/source/img/icons/cc-by.png +0 -0
  241. package/bin/themes/default/source/img/icons/cc-zero.png +0 -0
  242. package/bin/themes/default/source/img/icons/close.png +0 -0
  243. package/bin/themes/default/source/img/icons/down-arrow.png +0 -0
  244. package/bin/themes/default/source/img/icons/download.png +0 -0
  245. package/bin/themes/default/source/img/icons/favicon.ico +0 -0
  246. package/bin/themes/default/source/img/icons/home.png +0 -0
  247. package/bin/themes/default/source/img/icons/left-arrow.png +0 -0
  248. package/bin/themes/default/source/img/icons/link.png +0 -0
  249. package/bin/themes/default/source/img/icons/nav.png +0 -0
  250. package/bin/themes/default/source/img/icons/right-arrow.png +0 -0
  251. package/bin/themes/default/source/img/icons/search.png +0 -0
  252. package/bin/themes/default/source/img/icons/start.png +0 -0
  253. package/bin/themes/default/source/img/layers-2x.png +0 -0
  254. package/bin/themes/default/source/img/layers.png +0 -0
  255. package/bin/themes/default/source/img/marker-icon.png +0 -0
  256. package/bin/themes/default/source/img/pattern-spiral-overlay.png +0 -0
  257. package/bin/themes/default/source/img/promo-screenshots/classic-catalogue.png +0 -0
  258. package/bin/themes/default/source/img/promo-screenshots/classic-entry.png +0 -0
  259. package/bin/themes/default/source/img/promo-screenshots/classic-essay.png +0 -0
  260. package/bin/themes/default/source/img/promo-screenshots/modern-contents.png +0 -0
  261. package/bin/themes/default/source/img/promo-screenshots/modern-cover.png +0 -0
  262. package/bin/themes/default/source/img/promo-screenshots/modern-essay.png +0 -0
  263. package/bin/themes/default/source/js/application.js +604 -0
  264. package/bin/themes/default/source/js/deepzoom.js +186 -0
  265. package/bin/themes/default/source/js/epub.js +9 -0
  266. package/bin/themes/default/source/js/fullscreen.js +190 -0
  267. package/bin/themes/default/source/js/helper.js +197 -0
  268. package/bin/themes/default/source/js/map.js +94 -0
  269. package/bin/themes/default/source/js/navigation.js +59 -0
  270. package/bin/themes/default/source/js/popup.js +311 -0
  271. package/bin/themes/default/source/js/search.js +35 -0
  272. package/bin/themes/default/source/js/soundcloud-api.js +1 -0
  273. package/bin/themes/default/static/css/epub.css +401 -0
  274. package/bin/themes/default/static/fonts/MaterialIcons-Regular.eot +0 -0
  275. package/bin/themes/default/static/fonts/MaterialIcons-Regular.woff +0 -0
  276. package/bin/themes/default/static/fonts/MaterialIcons-Regular.woff2 +0 -0
  277. package/bin/themes/default/static/fonts/ibmplexsanscondensed-bold.eot +0 -0
  278. package/bin/themes/default/static/fonts/ibmplexsanscondensed-bold.woff +0 -0
  279. package/bin/themes/default/static/fonts/ibmplexsanscondensed-bold.woff2 +0 -0
  280. package/bin/themes/default/static/fonts/ibmplexsanscondensed-bolditalic.eot +0 -0
  281. package/bin/themes/default/static/fonts/ibmplexsanscondensed-bolditalic.woff +0 -0
  282. package/bin/themes/default/static/fonts/ibmplexsanscondensed-bolditalic.woff2 +0 -0
  283. package/bin/themes/default/static/fonts/ibmplexsanscondensed-italic.eot +0 -0
  284. package/bin/themes/default/static/fonts/ibmplexsanscondensed-italic.woff +0 -0
  285. package/bin/themes/default/static/fonts/ibmplexsanscondensed-italic.woff2 +0 -0
  286. package/bin/themes/default/static/fonts/ibmplexsanscondensed-regular.eot +0 -0
  287. package/bin/themes/default/static/fonts/ibmplexsanscondensed-regular.woff +0 -0
  288. package/bin/themes/default/static/fonts/ibmplexsanscondensed-regular.woff2 +0 -0
  289. package/bin/themes/default/static/fonts/notosans-bold.eot +0 -0
  290. package/bin/themes/default/static/fonts/notosans-bold.woff +0 -0
  291. package/bin/themes/default/static/fonts/notosans-bold.woff2 +0 -0
  292. package/bin/themes/default/static/fonts/notosans-bolditalic.eot +0 -0
  293. package/bin/themes/default/static/fonts/notosans-bolditalic.woff +0 -0
  294. package/bin/themes/default/static/fonts/notosans-bolditalic.woff2 +0 -0
  295. package/bin/themes/default/static/fonts/notosans-italic.eot +0 -0
  296. package/bin/themes/default/static/fonts/notosans-italic.woff +0 -0
  297. package/bin/themes/default/static/fonts/notosans-italic.woff2 +0 -0
  298. package/bin/themes/default/static/fonts/notosans-regular.eot +0 -0
  299. package/bin/themes/default/static/fonts/notosans-regular.woff +0 -0
  300. package/bin/themes/default/static/fonts/notosans-regular.woff2 +0 -0
  301. package/bin/themes/default/static/fonts/notoserif-bold.eot +0 -0
  302. package/bin/themes/default/static/fonts/notoserif-bold.woff +0 -0
  303. package/bin/themes/default/static/fonts/notoserif-bold.woff2 +0 -0
  304. package/bin/themes/default/static/fonts/notoserif-bolditalic.eot +0 -0
  305. package/bin/themes/default/static/fonts/notoserif-bolditalic.woff +0 -0
  306. package/bin/themes/default/static/fonts/notoserif-bolditalic.woff2 +0 -0
  307. package/bin/themes/default/static/fonts/notoserif-italic.eot +0 -0
  308. package/bin/themes/default/static/fonts/notoserif-italic.woff +0 -0
  309. package/bin/themes/default/static/fonts/notoserif-italic.woff2 +0 -0
  310. package/bin/themes/default/static/fonts/notoserif-regular.eot +0 -0
  311. package/bin/themes/default/static/fonts/notoserif-regular.woff +0 -0
  312. package/bin/themes/default/static/fonts/notoserif-regular.woff2 +0 -0
  313. package/bin/themes/default/static/img/baseline-website-24px.png +0 -0
  314. package/bin/themes/default/static/img/cover.png +0 -0
  315. package/bin/themes/default/static/img/fullscreen.png +0 -0
  316. package/bin/themes/default/static/img/fullscreen@2x.png +0 -0
  317. package/bin/themes/default/static/img/icons/arrow_forward.png +0 -0
  318. package/bin/themes/default/static/img/icons/baseline-headset-24px.png +0 -0
  319. package/bin/themes/default/static/img/icons/baseline-videocam-24px.png +0 -0
  320. package/bin/themes/default/static/img/icons/baseline-website-24px.png +0 -0
  321. package/bin/themes/default/static/img/icons/cc-by-nc-nd.png +0 -0
  322. package/bin/themes/default/static/img/icons/cc-by-nc-sa.png +0 -0
  323. package/bin/themes/default/static/img/icons/cc-by-nc.png +0 -0
  324. package/bin/themes/default/static/img/icons/cc-by-nd.png +0 -0
  325. package/bin/themes/default/static/img/icons/cc-by-sa.png +0 -0
  326. package/bin/themes/default/static/img/icons/cc-by.png +0 -0
  327. package/bin/themes/default/static/img/icons/cc-zero.png +0 -0
  328. package/bin/themes/default/static/img/icons/close.png +0 -0
  329. package/bin/themes/default/static/img/icons/down-arrow.png +0 -0
  330. package/bin/themes/default/static/img/icons/download.png +0 -0
  331. package/bin/themes/default/static/img/icons/favicon.ico +0 -0
  332. package/bin/themes/default/static/img/icons/home.png +0 -0
  333. package/bin/themes/default/static/img/icons/left-arrow.png +0 -0
  334. package/bin/themes/default/static/img/icons/link.png +0 -0
  335. package/bin/themes/default/static/img/icons/nav.png +0 -0
  336. package/bin/themes/default/static/img/icons/right-arrow.png +0 -0
  337. package/bin/themes/default/static/img/icons/search.png +0 -0
  338. package/bin/themes/default/static/img/icons/soundcloud.png +0 -0
  339. package/bin/themes/default/static/img/icons/start.png +0 -0
  340. package/bin/themes/default/static/img/icons/vimeo.png +0 -0
  341. package/bin/themes/default/static/img/icons/website.png +0 -0
  342. package/bin/themes/default/static/img/icons/youtube.png +0 -0
  343. package/bin/themes/default/static/img/layers-2x.png +0 -0
  344. package/bin/themes/default/static/img/layers.png +0 -0
  345. package/bin/themes/default/static/img/marker-icon.png +0 -0
  346. package/bin/themes/default/static/img/pattern-spiral-overlay.png +0 -0
  347. package/bin/themes/default/tests/.gitkeep +0 -0
  348. package/bin/themes/default/tests/e2e/.eslintrc.js +9 -0
  349. package/bin/themes/default/tests/e2e/fixtures/blns.json +483 -0
  350. package/bin/themes/default/tests/e2e/plugins/index.js +22 -0
  351. package/bin/themes/default/tests/e2e/specs/quire-contents.spec.js +52 -0
  352. package/bin/themes/default/tests/e2e/specs/quire-contributors.spec.js +66 -0
  353. package/bin/themes/default/tests/e2e/specs/quire-entry.spec.js +104 -0
  354. package/bin/themes/default/tests/e2e/specs/quire-essay.spec.js +105 -0
  355. package/bin/themes/default/tests/e2e/specs/quire-menu.spec.js +38 -0
  356. package/bin/themes/default/tests/e2e/specs/quire-modal.spec.js +69 -0
  357. package/bin/themes/default/tests/e2e/specs/quire-next-back-buttons.spec.js +27 -0
  358. package/bin/themes/default/tests/e2e/specs/quire-page.spec.js +28 -0
  359. package/bin/themes/default/tests/e2e/specs/quire-search.spec.js +48 -0
  360. package/bin/themes/default/tests/e2e/specs/quire-splash.spec.js +38 -0
  361. package/bin/themes/default/tests/e2e/support/commands.js +25 -0
  362. package/bin/themes/default/tests/e2e/support/index.js +20 -0
  363. package/bin/themes/default/theme.toml +22 -0
  364. package/bin/themes/default/tsconfig.json +5 -0
  365. package/bin/themes/default/webpack/webpack.config.dev.js +128 -0
  366. package/bin/themes/default/webpack/webpack.config.epub.js +140 -0
  367. package/bin/themes/default/webpack/webpack.config.pdf.js +135 -0
  368. package/bin/themes/default/webpack/webpack.config.prod.js +133 -0
  369. package/package.json +1 -1
  370. package/index.js +0 -20
@@ -0,0 +1,7 @@
1
+ <section class="section quire-page__abstract">
2
+ <div class="container">
3
+ <div class="content">
4
+ {{ .Params.abstract | markdownify }}
5
+ </div>
6
+ </div>
7
+ </section>
@@ -0,0 +1,59 @@
1
+ {{/* Duplicates part of the code from q-cite.html in order to add
2
+ references to the page-level bibliography list */}}
3
+ {{/* ---------------------------------------------------------------------- */}}
4
+ {{- range .Params.references -}}
5
+
6
+ {{- $id := . -}}
7
+ {{- $full := "" -}}
8
+ {{- $short := "" -}}
9
+ {{- $alphaOrder := "" -}}
10
+
11
+ {{- range $.Site.Data.references.entries -}}
12
+ {{- if eq .id $id -}}
13
+
14
+ {{- $full = .full -}}
15
+
16
+ {{ if .short }}
17
+ {{- $short = .short -}}
18
+ {{ else }}
19
+ {{- $short = .id -}}
20
+ {{ end }}
21
+
22
+ {{ if .sort }}
23
+ {{- $alphaOrder = .sort -}}
24
+ {{ else }}
25
+ {{- $alphaOrder = .full -}}
26
+ {{ end }}
27
+
28
+ {{- end -}}
29
+ {{- end -}}
30
+
31
+ {{- $alphaOrder := $alphaOrder | truncate 400 | urlize -}}
32
+ {{- $.Page.Scratch.SetInMap "entry" "0" $short -}}
33
+ {{- $.Page.Scratch.SetInMap "entry" "1" $full -}}
34
+ {{- $entry := ($.Page.Scratch.GetSortedMapValues "entry") -}}
35
+ {{- $.Page.Scratch.SetInMap "cited" $alphaOrder $entry -}}
36
+ {{- $.Page.Scratch.Delete "entry" -}}
37
+
38
+ {{- end -}}
39
+
40
+ {{- if ($.Scratch.GetSortedMapValues "cited") }}
41
+ <div class="quire-page__content__references backmatter">
42
+ {{ with .Site.Params.biblioHeading }}<h2 id="{{ urlize . }}">{{ . }}</h2>{{ end }}
43
+ {{- if eq .Site.Params.displayBiblioShort true }}
44
+ <dl>
45
+ {{- range ($.Scratch.GetSortedMapValues "cited") }}
46
+ {{/* the id is in a span because Pandoc otherwise strips them out from dt and dd for EPUBs for some reason */}}
47
+ <dt><span id="{{ urlize (index . 0) }}">{{ markdownify (index . 0) }}</span></dt>
48
+ <dd>{{ markdownify (index . 1)}}</dd>
49
+ {{- end }}
50
+ </dl>
51
+ {{- else }}
52
+ <ul>
53
+ {{- range ($.Scratch.GetSortedMapValues "cited") }}
54
+ <li id="{{ urlize (index . 0) }}">{{ markdownify (index . 1)}}</li>
55
+ {{- end }}
56
+ </ul>
57
+ {{- end }}
58
+ </div>
59
+ {{- end -}}
@@ -0,0 +1,9 @@
1
+ quire-page{{ with .Params.class -}}
2
+ {{- $classlist := split . " " -}}
3
+ {{- range $classlist }} quire-page--{{ . }}{{ end -}}
4
+ {{- end -}}
5
+
6
+ {{- range first 1 (where .Site.Pages "Params.class" "in" "page-one") -}}
7
+ {{- $.Scratch.Set "pageOneWeight" .Weight -}}
8
+ {{- end -}}
9
+ {{- if lt .Weight ($.Scratch.Get "pageOneWeight") }} quire-page--frontmatter{{ end -}}
@@ -0,0 +1,48 @@
1
+ {{/*
2
+
3
+ A partial to add contributors to page headers. Checks value of '
4
+ contributorByline set in config.yml and contributor_byline set in the page
5
+ YAML to determine if the contributors should be added, and in what form.
6
+
7
+ */}}
8
+
9
+ {{/* Define the list type */}}
10
+ {{/* ---------------------------------------------------------------------- */}}
11
+ {{- if eq .Params.contributor_byline "name" -}}
12
+ {{ $.Scratch.Set "listType" "list" }}
13
+ {{- else if eq .Params.contributor_byline "name-title" -}}
14
+ {{ $.Scratch.Set "listType" "list-plus" }}
15
+ {{- else -}}
16
+ {{ $globalByline := $.Site.Params.contributorByline }}
17
+ {{- if eq $globalByline "name" -}}
18
+ {{ $.Scratch.Set "listType" "list" }}
19
+ {{- else if eq $globalByline "name-title" -}}
20
+ {{ $.Scratch.Set "listType" "list-plus" }}
21
+ {{- else -}}
22
+ {{ $.Scratch.Set "listType" "list-plus" }}
23
+ {{- end -}}
24
+ {{- end -}}
25
+
26
+ {{/* Check global setting, do nothing if set to false w/ no page override */}}
27
+ {{/* ---------------------------------------------------------------------- */}}
28
+ {{- if or (and (eq .Site.Params.contributorByline false) (eq .Params.contributor_byline false)) (and (eq .Site.Params.contributorByline false) (eq .Params.contributor_byline nil )) -}}
29
+
30
+ {{- else -}}
31
+
32
+ {{/* Add contributor if contributor_byline is not false */}}
33
+ {{/* -------------------------------------------------------------------- */}}
34
+ {{- if ne .Params.contributor_byline false -}}
35
+ {{- if isset .Params "contributor_as_it_appears" -}}
36
+ <div class="quire-page__header__contributor">
37
+ <p class="quire-contributor">{{ markdownify .Params.contributor_as_it_appears }}<p>
38
+ </div>
39
+ {{- else -}}
40
+ {{- with .Params.contributor -}}
41
+ <div class="quire-page__header__contributor">
42
+ {{ partial "contributor-list.html" (dict "range" . "contributorType" "all" "listType" ($.Scratch.Get "listType") "Site" $.Site) }}
43
+ </div>
44
+ {{- end -}}
45
+ {{- end -}}
46
+ {{- end -}}
47
+
48
+ {{- end -}}
@@ -0,0 +1,22 @@
1
+ {{- if isset $.Site.Params "imagedir" }}
2
+ {{ $.Scratch.Set "imageDir" $.Site.Params.imageDir }}
3
+ {{ else }}
4
+ {{ $.Scratch.Set "imageDir" "" }}
5
+ {{ end -}}
6
+ <section class="{{ if or (eq .Title "title page") (eq .Title "half title page") }} is-screen-only {{ end }} quire-page__header hero">
7
+ <div class="hero-body">
8
+ {{/* Page Title */}}
9
+ <h1 class="quire-page__header__title" id="{{ .Title | urlize }}">
10
+ {{- with .Params.label }}<span class="label">{{ . }}<span class="visually-hidden">{{ $.Site.Params.pageLabelDivider }}</span></span>{{ end -}}
11
+ {{- partial "page-title.html" . | markdownify -}}
12
+ </h1>
13
+ {{/* Contributors, if any */}}
14
+ {{ partial "page-contributor.html" . }}
15
+ </div>
16
+ </section>
17
+
18
+ {{- if .Params.image -}}
19
+ {{- $imgPath := printf "%s/%s" ($.Scratch.Get "imageDir") .Params.image -}}
20
+ <section class="{{ if or (eq .Title "title page") (eq .Title "half title page") }} is-screen-only {{ end }} quire-page__header hero__image" style="background-image: url('{{ $imgPath | relURL }}');">
21
+ </section>
22
+ {{- end -}}
@@ -0,0 +1,9 @@
1
+ {{/*
2
+
3
+ Concatenates the page title and subtitle, using a colon, or if the title ends with a ! or ?, no colon is included.
4
+
5
+ See also site-title.html
6
+
7
+ */}}
8
+ {{- $endPunctuation := findRE "[!|?]$" .Page.Params.title -}}
9
+ {{ .Page.Params.title }}{{ with .Page.Params.subtitle }}{{ if $endPunctuation }} {{ else }}: {{ end }}{{ . }}{{ end }}
@@ -0,0 +1,36 @@
1
+ {{/* Entry tombstone data */}}
2
+ {{ range .Params.object }}
3
+ <section class="quire-entry__tombstone">
4
+ <div class="container">
5
+ <table class="table is-fullwidth">
6
+ <tbody>
7
+ {{ if .id }}
8
+ {{ $.Scratch.Set "id" .id }}
9
+ {{ range $.Site.Data.objects.object_display_order }}
10
+ {{ $.Scratch.Set "key" . }}
11
+ {{ range where $.Site.Data.objects.object_list "id" "eq" ($.Scratch.Get "id") }}
12
+ {{ range $key, $value := . }}
13
+ {{ if and (eq $key ($.Scratch.Get "key")) (ne $value nil) }}
14
+ <tr><td>{{ $key | humanize | title }}</td><td>{{ markdownify $value }}</td></tr>
15
+ {{ end }}
16
+ {{ end }}
17
+ {{ end }}
18
+ {{ end }}
19
+ {{ else }}
20
+ {{ range $key, $value := . }}
21
+ <tr><td>{{ $key | humanize | title }}</td><td>{{ markdownify $value }}</td></tr>
22
+ {{ end }}
23
+ {{ end }}
24
+ </tbody>
25
+ </table>
26
+ {{ if .id }}
27
+ {{ range where $.Site.Data.objects.object_list "id" "eq" .id }}
28
+ {{ if .link }}
29
+ <a href="{{ .link | relURL }}" target="_blank" class="button">{{ $.Site.Params.entryPageObjectLinkText }} {{- partial "icon.html" (dict "type" "link" "description" "") -}}</a>
30
+ {{ end }}
31
+ {{ end }}
32
+ {{ else }}
33
+ {{ end }}
34
+ </div>
35
+ </section>
36
+ {{ end }}
@@ -0,0 +1,20 @@
1
+ {{/* Adds info to use in PrinceXML running page footers ------ */}}
2
+
3
+ {{/* Get the Section’s landing page title if one exists */}}
4
+ {{/* ---------------------------------------------------------------------- */}}
5
+ {{- if .Section -}}
6
+ {{- range where $.Site.Pages "Section" .Section -}}
7
+ {{- if eq .Slug "." -}}
8
+ {{ $.Scratch.Set "sectionTitle" .Title }}
9
+ {{- end -}}
10
+ {{- end -}}
11
+ {{- end -}}
12
+
13
+ {{/* Add info to page in hidden DIV */}}
14
+ {{/* ---------------------------------------------------------------------- */}}
15
+ <div style="display: none">
16
+ <span class="pdf-page-title">
17
+ {{ with .Params.label }}{{ . }}{{ $.Site.Params.pageLabelDivider }}{{ end }}{{ if .Params.short_title }}{{ .Params.short_title | markdownify }}{{ else }}{{ .Title | markdownify | truncate 35 }}{{ end }}</span>
18
+ <span class="pdf-page-section">{{ if ne ($.Scratch.Get "sectionTitle") "" }}{{ $.Scratch.Get "sectionTitle" }}{{ else }}{{ .Section | humanize }}{{ end }}</span>
19
+ </div>
20
+ {{- $.Scratch.Delete "sectionTitle" -}}
@@ -0,0 +1,39 @@
1
+ {{/*
2
+ half title page and title page page layout for PDF output only
3
+ */}}
4
+
5
+ {{- if eq .site.Params.pdf true }}
6
+ <div class="fullPageBreak"></div>
7
+ <div class="half-title-page">
8
+ {{ if .site.Data.publication.title }}
9
+ <span class="title-htp">
10
+ {{ .site.Data.publication.title }}
11
+ </span>
12
+ {{ end }}
13
+ </div>
14
+ <div class="fullPageBreak"></div>
15
+ <div class="title-page">
16
+ {{ if .site.Data.publication.title }}
17
+ <span class="title-tp">
18
+ {{ .site.Data.publication.title }}
19
+ </span><br />
20
+ {{ end }}
21
+ {{ if .site.Data.publication.subtitle }}
22
+ <span class="sub-title">
23
+ {{ .site.Data.publication.subtitle }}
24
+ </span><br />
25
+ {{ end }}
26
+ <span class="contributor">
27
+ {{ if .site.Data.publication.contributor_as_it_appears }}
28
+ {{ .site.Data.publication.contributor_as_it_appears | markdownify }}
29
+ {{ else }}
30
+ {{ partial "contributor-list.html" (dict "range" .site.Data.publication.contributor "contributorType" "primary" "listType" "string" "Site" .site) }}
31
+ {{ end }}
32
+ </span><br />
33
+ <span class="publisher">
34
+ {{ range .site.Data.publication.publisher }}
35
+ {{ if .name }}{{ .name }}{{ end }}{{ if and (.name) (.location) }}, {{ end }}{{ if .location }}{{ .location }}{{ end }}
36
+ {{ end }}
37
+ </span>
38
+ </div>
39
+ {{ end -}}
@@ -0,0 +1,5 @@
1
+ {{- $js := "js/application.js" | relURL -}}
2
+ {{- $jsCustom := "js/custom.js" | relURL -}}
3
+ <script type="text/javascript"> var figureModal ={{ .figureModal }}</script>
4
+ <script src="{{ $js }}"></script>
5
+ <script src="{{ $jsCustom }}"></script>
@@ -0,0 +1,52 @@
1
+ {{- if isset $.Site.Params "imagedir" }}
2
+ {{ $.Scratch.Set "imageDir" $.Site.Params.imageDir }}
3
+ {{ else }}
4
+ {{ $.Scratch.Set "imageDir" "" }}
5
+ {{ end -}}
6
+ {{- $imgDir := $.Scratch.Get "imageDir" -}}
7
+
8
+ <div id="js-search"
9
+ class="quire-search"
10
+ aria-expanded="false"
11
+ data-search-index='{{ ref . "/search-index.md" }}'>
12
+ <div class="quire-search__close-button">
13
+ <button class="button is-medium" onclick="toggleSearch()">
14
+ {{- partial "icon.html" (dict "type" "close" "description" "Close search window") -}}
15
+ </button>
16
+ </div>
17
+
18
+ <div class="quire-search__inner" aria-label="search results">
19
+ <section class="hero">
20
+ <div class="hero-body">
21
+ <div class="container">
22
+ <div class='input-bar'>
23
+ <input id="js-search-input"
24
+ class="input is-large"
25
+ name="search"
26
+ type="text"
27
+ placeholder="Search this publication"
28
+ value=""
29
+ oninput="search()" />
30
+ <span>
31
+ {{- partial "icon.html" (dict "type" "search" "description" "Search") -}}
32
+ </span>
33
+ </div>
34
+
35
+ <ul id="js-search-results-list"
36
+ class="quire-search__inner__list">
37
+ </ul>
38
+ </div>
39
+ </div>
40
+ </section>
41
+ </div>
42
+ </div>
43
+
44
+ <template id="js-search-results-template">
45
+ <li class="quire-search__inner__list-item">
46
+ <a class="js-search-results-item" href="">
47
+ <h2 class="title"><span class="js-search-results-item-title"></span></h2>
48
+ </a>
49
+ <p><span class="js-search-results-item-type"></span> | <span class="js-search-results-item-length"></span> words</p>
50
+ </li>
51
+ </template>
52
+ </div>
@@ -0,0 +1,9 @@
1
+ {{/*
2
+
3
+ Concatenates the site title and subtitle, using a colon, or if the title ends with a ! or ?, no colon is included.
4
+
5
+ See also page-title.html
6
+
7
+ */}}
8
+ {{- $endPunctuation := findRE "[!|?]$" .Site.Data.publication.title -}}
9
+ {{ .Site.Data.publication.title }}{{ with .Site.Data.publication.subtitle }}{{ if $endPunctuation }} {{ else }}: {{ end }}{{ . }}{{ end }}{{ with .Site.Data.publication.reading_line }} ({{ . }}){{ end }}
@@ -0,0 +1,9 @@
1
+ {{ $themeDependencies := "themes/default/node_modules" }}
2
+
3
+ {{ if fileExists $themeDependencies }}
4
+
5
+ {{ else }}
6
+
7
+ {{ errorf "%q is missing! \n\nQUIRE FIX --> Run `quire install`. Running `quire install` will install missing theme node_modules dependencies. It only needs to be run once for this project. It is necessary when cloning/copying an existing Quire project from another source rather than starting it with `quire new`.\n" $themeDependencies }}
8
+
9
+ {{ end }}
@@ -0,0 +1,21 @@
1
+ {{ $pages := .Site.Pages }}
2
+ {{ $pages = where $pages ".Type" "!=" "data" }}
3
+ {{ $pageClassOne := slice }}
4
+
5
+ {{ range $pages }}
6
+
7
+ {{ if in .Params.class "page-one" }}
8
+
9
+ {{ $pageClassOne = $pageClassOne | append .Path }}
10
+
11
+ {{ end }}
12
+
13
+ {{ end }}
14
+
15
+ {{ if gt $pageClassOne 1 }}
16
+
17
+ {{ $pageList := delimit $pageClassOne ", " }}
18
+
19
+ {{ errorf "More than one page with `class: page-one`! \n\nQUIRE FIX --> Remove `class: page-one` from all but one of these Markdown files: %s. Using `class: page-one` in the YAML of a page sets sets that page to be numbered as page 1 in the PDF output of your project. Pages before `page-one` will be numbered with lowercase Roman numerals (i, ii, iii, ix, etc.).\n" $pageList }}
20
+
21
+ {{ end }}
@@ -0,0 +1,49 @@
1
+ {{ $pages := .Site.Pages }}
2
+ {{ $pages = where $pages ".Type" "!=" "data" }}
3
+
4
+ {{ $pageWeights := "" }}
5
+ {{ $duplicatePageWeight := slice }}
6
+ {{ $otherPageWeight := slice }}
7
+ {{ $noPageWeight := slice }}
8
+
9
+ {{ range $pages }}
10
+
11
+ {{ if .Weight }}
12
+
13
+ {{ if in (string $pageWeights) (string .Weight) }}
14
+
15
+ {{ $duplicatePageWeight = $duplicatePageWeight | append .Weight }}
16
+
17
+ {{ else }}
18
+
19
+ {{ $pageWeights = delimit (slice $pageWeights .Weight) ", " }}
20
+
21
+ {{ end }}
22
+
23
+ {{ else }}
24
+
25
+ {{ $noPageWeight = $noPageWeight | append .Path }}
26
+
27
+ {{ end }}
28
+
29
+ {{ end }}
30
+
31
+ {{ if gt $noPageWeight 0 }}
32
+
33
+ {{ $noPageWeightList := delimit $noPageWeight ", " }}
34
+
35
+ {{ errorf "One or more Markdown files with no page weight! \n\nQUIRE FIX --> Assign a unique weight that is greater than zero (0) to these Markdown files: %s. Having a valid weight on each page ensures your project pages are ordered correctly.\n" $noPageWeightList }}
36
+
37
+ {{ end }}
38
+
39
+ {{ if gt $duplicatePageWeight 0 }}
40
+
41
+ {{ $allDupes := slice }}
42
+ {{ range where $pages "Weight" "in" $duplicatePageWeight }}
43
+ {{ $allDupes = $allDupes | append .Path }}
44
+ {{ end }}
45
+ {{ $allDupesList := delimit $allDupes ", " }}
46
+
47
+ {{ errorf "Some Markdown files have duplicate page weights! \n\nQUIRE FIX --> Assign a unique weight to these Markdown files: %s. Having a unique weight ensures your project pages are ordered correctly.\n" $allDupesList }}
48
+
49
+ {{ end }}
@@ -0,0 +1,13 @@
1
+ {{ if ne .Site.Params.runTests false }}
2
+
3
+ {{ partial "tests/check-node-modules.html" . }}
4
+
5
+ {{ partial "tests/check-page-weights.html" . }}
6
+
7
+ {{ partial "tests/check-page-one-class.html" . }}
8
+
9
+ {{ else }}
10
+
11
+ {{ warnf "\n\nQuire tests are currently disabled. To enable them, set the `runTests` parameter to true in your projects’s config.yml file." }}
12
+
13
+ {{ end }}
@@ -0,0 +1,23 @@
1
+ {{ if ne .Type "essay" -}}
2
+ <!-- Books and Integrated Book Parts/Chapters -->
3
+ <meta name="twitter:card" content="summary_large_image">
4
+ <meta name="twitter:site" content="{{ .Site.BaseURL }}">
5
+ <meta name="twitter:title" content="{{ partial "site-title.html" . }}">
6
+ <meta name="twitter:description" content="{{ if .Site.Data.publication.description.one_line }}{{ .Site.Data.publication.description.one_line }}{{ else }}{{ with .Site.Data.publication.description.full }}{{ . | truncate 160 }}{{ end }}{{ end }}">
7
+ <meta name="twitter:image" content="{{ with .Site.Data.publication.promo_image }}{{ $.Site.BaseURL }}{{ $.Site.Params.imageDir }}{{ . }}{{ end }}">
8
+ {{ else -}}
9
+ <!-- Standalone Essays/Articles w/i Books -->
10
+ <meta name="twitter:card" content="summary_large_image">
11
+ <meta name="twitter:site" content="{{ .Permalink }}">
12
+ <meta name="twitter:title" content="{{ partial "page-title.html" . }}">
13
+ {{ if .Page.Params.abstract -}}
14
+ <meta name="twitter:description" content="{{ .Page.Params.abstract | truncate 160 }}">
15
+ {{ else -}}
16
+ <meta name="twitter:description" content="{{ if .Site.Data.publication.description.one_line }}{{ .Site.Data.publication.description.one_line }}{{ else }}{{ with .Site.Data.publication.description.full }}{{ . | truncate 160 }}{{ end }}{{ end }}">
17
+ {{ end -}}
18
+ {{ if .Page.Params.cover -}}
19
+ <meta property="twitter:image" content="{{ .Site.BaseURL }}{{ .Site.Params.imageDir }}{{ .Site.Params.figureSubDir }}{{ .Page.Params.cover }}" />
20
+ {{ else -}}
21
+ <meta property="twitter:image" content="{{ with .Site.Data.publication.promo_image }}{{ $.Site.BaseURL }}{{ $.Site.Params.imageDir }}{{ . }}{{ end }}" />
22
+ {{ end -}}
23
+ {{ end -}}
@@ -0,0 +1,61 @@
1
+ {{/*
2
+
3
+ This shortcode generates a bibliography from the entries in the project's
4
+ `references.yml` file.
5
+
6
+ By default, the bibliography will be sorted by each entry’s `full` value.
7
+ However, this can be overridden by including a `sort` value on any
8
+ individual entries that you want sorted otherwise.
9
+
10
+ Also, in `config.yml` the `displayBiblioShort` property can be set to "true"
11
+ to display both the short and the full bibliography values in the output.
12
+ Without this property set, the bibliography will not include the short form.
13
+
14
+ */}}
15
+
16
+ {{- range $.Site.Data.references.entries -}}
17
+
18
+ {{- $bibFull := .full -}}
19
+
20
+ {{- $bibShort := "" -}}
21
+ {{ if .short }}
22
+ {{- $bibShort = .short -}}
23
+ {{ else }}
24
+ {{- $bibShort = .id -}}
25
+ {{ end }}
26
+
27
+ {{- $bibSort := "" -}}
28
+ {{ if .sort }}
29
+ {{- $bibSort = .sort -}}
30
+ {{ else }}
31
+ {{- $bibSort = .full -}}
32
+ {{ end }}
33
+ {{- $bibSort = $bibSort | truncate 400 | urlize -}}
34
+
35
+ {{- $.Page.Scratch.SetInMap "ref" "0" $bibShort -}}
36
+ {{- $.Page.Scratch.SetInMap "ref" "1" $bibFull -}}
37
+ {{- $ref := ($.Page.Scratch.GetSortedMapValues "ref") -}}
38
+ {{- $.Page.Scratch.SetInMap "biblio" $bibSort $ref -}}
39
+ {{- $.Page.Scratch.Delete "ref" -}}
40
+
41
+ {{- end -}}
42
+
43
+ {{- if ($.Page.Scratch.GetSortedMapValues "biblio") }}
44
+ <div class="quire-page__content__references">
45
+ {{- if eq .Site.Params.displayBiblioShort true }}
46
+ <dl>
47
+ {{- range ($.Page.Scratch.GetSortedMapValues "biblio") -}}
48
+ {{/* the id is in a span because Pandoc otherwise strips them out from dt and dd for EPUBs for some reason */}}
49
+ <dt><span id="{{ urlize (index . 0) }}">{{ markdownify (index . 0) }}</span></dt>
50
+ <dd>{{ markdownify (index . 1)}}</dd>
51
+ {{- end }}
52
+ </dl>
53
+ {{- else }}
54
+ <ul>
55
+ {{- range ($.Page.Scratch.GetSortedMapValues "biblio") }}
56
+ <li id="{{ urlize (index . 0) }}">{{ markdownify (index . 1)}}</li>
57
+ {{- end }}
58
+ </ul>
59
+ {{- end }}
60
+ </div>
61
+ {{- end -}}
@@ -0,0 +1,79 @@
1
+ {{/*
2
+
3
+ This shortcode adds a linked Author Date citation reference to the text, and a
4
+ hover pop-up with the full citation text. It also adds the citation to a map
5
+ of cited works, which can then be output as a page-level bibliography on essay
6
+ and entry type pages. Example:
7
+
8
+ {{< q-cite "Faure 1909" "54" >}}
9
+
10
+ The first positional parameter is a short form citation that should match one
11
+ in `references.yml`. The second, optional parameter is a page reference. The
12
+ above sample would output as: Faure 1909, 54.
13
+
14
+ A third optional parameter allows you to customize the text to appear in the
15
+ link if not the short form of the citation. The following sample would appear
16
+ simply as: 1909, 54.
17
+
18
+ {{< q-cite "Faure 1909" "54" "1909" >}}
19
+
20
+ In using this third parameter, you still need to have the second parameter
21
+ even if it’s empty. The following sample would appear simply as: 1909.
22
+
23
+ {{< q-cite "Faure 1909" "" "1909" >}}
24
+
25
+ The text element between the author date reference and the page can be changed
26
+ with the `citationPageLocationDivider` property in `config.yml`.
27
+
28
+ */}}
29
+
30
+ {{- $errorMissingValue := dict "shortcode" "q-cite" "message" "1, 2 or 3 values must be supplied with this shortcode. The first is required and should match a short reference in the project’s `references.yml` file, the second is optional, and should be a page number or range of page numbers, the third is optional and should be the text to appear in the link if not the full short form of the reference" "example" "{{< q-cite &#34;Faure 1909&#34; &#34;304&#34; &#34;1909&#34; >}}" -}}
31
+
32
+ {{- $errorMissingReference := dict "shortcode" "q-cite" "message" "The id supplied doesn’t match one in the project’s `references.yml` file" "example" "{{< q-cite &#34;Faure 1909&#34; >}}<br /><br />id: &#34;Faure 1909&#34;" -}}
33
+
34
+ {{- if gt (len .Params) 3 -}}
35
+
36
+ {{- partial "error-message.html" $errorMissingValue -}}
37
+
38
+ {{- else -}}
39
+
40
+ {{- $id := .Get 0 -}}
41
+ {{- $full := "" -}}
42
+ {{- $short := "" -}}
43
+ {{- $alphaOrder := "" -}}
44
+
45
+ {{- range $.Site.Data.references.entries -}}
46
+ {{- if eq .id $id -}}
47
+
48
+ {{- $full = .full -}}
49
+
50
+ {{- if .short -}}
51
+ {{- $short = .short -}}
52
+ {{- else -}}
53
+ {{- $short = .id -}}
54
+ {{- end -}}
55
+
56
+ {{- if .sort -}}
57
+ {{- $alphaOrder = .sort -}}
58
+ {{- else -}}
59
+ {{- $alphaOrder = .full -}}
60
+ {{- end -}}
61
+ {{- $alphaOrder = $alphaOrder | truncate 100 | urlize -}}
62
+
63
+ {{- end -}}
64
+ {{- end -}}
65
+
66
+ {{- if eq $full "" -}}
67
+
68
+ {{- partial "error-message.html" $errorMissingReference -}}
69
+
70
+ {{- else -}}
71
+
72
+ {{- $.Page.Scratch.SetInMap "entry" "0" $short -}}
73
+ {{- $.Page.Scratch.SetInMap "entry" "1" $full -}}
74
+ {{- $entry := ($.Page.Scratch.GetSortedMapValues "entry") -}}
75
+ {{- $.Page.Scratch.SetInMap "cited" $alphaOrder $entry -}}
76
+ <span class="quire-citation expandable">{{ if ne .Site.Params.citationPopupStyle "icon" }}<span class="quire-citation__button" role="button" tabindex="0" aria-expanded="false">{{ end }}{{- if eq (len .Params) 3 }}{{- .Get 2 -}}{{ else }}{{- markdownify $short -}}{{ end }}{{- if eq (len .Params) 2 }}{{ $.Site.Params.citationPageLocationDivider }}{{ .Get 1 }}{{ end -}}{{ if eq .Site.Params.citationPopupStyle "icon" }}<button class="quire-citation__button material-icons md-18 material-control-point" aria-expanded="false">control_point</button>{{ end }}{{ if ne .Site.Params.citationPopupStyle "icon" }}</span>{{ end }}<span hidden class="quire-citation__content"><span class="visually-hidden">Citation: </span>{{- markdownify $full -}}</span></span>
77
+ {{- end -}}
78
+
79
+ {{- end -}}
@@ -0,0 +1,3 @@
1
+ <div class="{{ with .Get 0 }}{{ . }}{{ end }}">
2
+ {{ .Inner | markdownify }}
3
+ </div>