@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.
- package/CHANGELOG.md +46 -0
- package/bin/.DS_Store +0 -0
- package/bin/go-iiif/.DS_Store +0 -0
- package/bin/index.js +2 -0
- package/bin/starters/.DS_Store +0 -0
- package/bin/starters/README.md +0 -0
- package/bin/starters/default/.circleci/config.yml +98 -0
- package/bin/starters/default/.gitignore +14 -0
- package/bin/starters/default/.nojekyll +0 -0
- package/bin/starters/default/CHANGELOG.md +38 -0
- package/bin/starters/default/README.md +25 -0
- package/bin/starters/default/bin/deploy.sh +25 -0
- package/bin/starters/default/config/_default/config.yml +53 -0
- package/bin/starters/default/config/development/config.yml +14 -0
- package/bin/starters/default/config/environments/dev.yml +14 -0
- package/bin/starters/default/config/environments/github.yml +15 -0
- package/bin/starters/default/config/environments/netlify.yml +18 -0
- package/bin/starters/default/config/epub.yml +15 -0
- package/bin/starters/default/config/pdf.yml +16 -0
- package/bin/starters/default/config/site.yml +13 -0
- package/bin/starters/default/config.yml +53 -0
- package/bin/starters/default/content/about.md +20 -0
- package/bin/starters/default/content/bibliography.md +7 -0
- package/bin/starters/default/content/catalogue/1.md +28 -0
- package/bin/starters/default/content/catalogue/2.md +29 -0
- package/bin/starters/default/content/catalogue/3.md +20 -0
- package/bin/starters/default/content/catalogue/4.md +22 -0
- package/bin/starters/default/content/catalogue/catalogue-index.md +8 -0
- package/bin/starters/default/content/contents.md +7 -0
- package/bin/starters/default/content/contributors.md +7 -0
- package/bin/starters/default/content/cover.md +11 -0
- package/bin/starters/default/content/essay.md +80 -0
- package/bin/starters/default/content/intro.md +21 -0
- package/bin/starters/default/content/search-index.md +8 -0
- package/bin/starters/default/data/figures.yml +90 -0
- package/bin/starters/default/data/objects.yml +49 -0
- package/bin/starters/default/data/publication.yml +149 -0
- package/bin/starters/default/data/references.yml +11 -0
- package/bin/starters/default/static/css/custom.css +0 -0
- package/bin/starters/default/static/data/sample-geojson.json +16 -0
- package/bin/starters/default/static/downloads/.gitkeep +0 -0
- package/bin/starters/default/static/downloads/output.epub +0 -0
- package/bin/starters/default/static/downloads/output.mobi +0 -0
- package/bin/starters/default/static/downloads/output.pdf +0 -0
- package/bin/starters/default/static/img/contributors/judith-keller.jpg +0 -0
- package/bin/starters/default/static/img/cover.png +0 -0
- package/bin/starters/default/static/img/figures/duo.jpg +0 -0
- package/bin/starters/default/static/img/figures/evans-burroughs.jpg +0 -0
- package/bin/starters/default/static/img/figures/evans-child.jpg +0 -0
- package/bin/starters/default/static/img/figures/evans-graveyard.jpg +0 -0
- package/bin/starters/default/static/img/figures/evans-hymns.jpg +0 -0
- package/bin/starters/default/static/img/figures/evans-legionnaire.jpg +0 -0
- package/bin/starters/default/static/img/figures/evans-refugee.jpg +0 -0
- package/bin/starters/default/static/img/figures/evans-sons.jpg +0 -0
- package/bin/starters/default/static/img/figures/evans-video-still.jpg +0 -0
- package/bin/starters/default/static/img/figures/evans-washroom.jpg +0 -0
- package/bin/starters/default/static/img/figures/evans.jpg +0 -0
- package/bin/starters/default/static/img/figures/family.jpg +0 -0
- package/bin/starters/default/static/img/figures/lange-house.jpg +0 -0
- package/bin/starters/default/static/img/figures/lange.jpg +0 -0
- package/bin/starters/default/static/img/figures/mother-b.jpg +0 -0
- package/bin/starters/default/static/img/figures/mother-c.jpg +0 -0
- package/bin/starters/default/static/img/figures/mother.jpg +0 -0
- package/bin/starters/default/static/img/figures/pickers.jpg +0 -0
- package/bin/starters/default/static/img/logo-getty.png +0 -0
- package/bin/starters/default/static/img/pattern-spiral-overlay.png +0 -0
- package/bin/starters/default/static/js/custom.js +4 -0
- package/bin/themes/README.md +0 -0
- package/bin/themes/default/.circleci/config.yml +62 -0
- package/bin/themes/default/.eslintrc.js +16 -0
- package/bin/themes/default/.gitignore +13 -0
- package/bin/themes/default/.scss-lint.yml +239 -0
- package/bin/themes/default/CHANGELOG.md +73 -0
- package/bin/themes/default/LICENSE.md +20 -0
- package/bin/themes/default/README.md +112 -0
- package/bin/themes/default/archetypes/default.md +2 -0
- package/bin/themes/default/cypress.json +7 -0
- package/bin/themes/default/layouts/404.html +0 -0
- package/bin/themes/default/layouts/_default/baseof.html +43 -0
- package/bin/themes/default/layouts/_default/single.html +26 -0
- package/bin/themes/default/layouts/contents/single.html +37 -0
- package/bin/themes/default/layouts/cover/single.html +128 -0
- package/bin/themes/default/layouts/data/search-index.html +65 -0
- package/bin/themes/default/layouts/entry/single.html +372 -0
- package/bin/themes/default/layouts/essay/single.html +24 -0
- package/bin/themes/default/layouts/partials/analytics.html +29 -0
- package/bin/themes/default/layouts/partials/cite-this.html +348 -0
- package/bin/themes/default/layouts/partials/contents-list/card-image.html +13 -0
- package/bin/themes/default/layouts/partials/contents-list/closing-tags.html +59 -0
- package/bin/themes/default/layouts/partials/contents-list/contents-list.html +179 -0
- package/bin/themes/default/layouts/partials/contents-list/file-dir.html +7 -0
- package/bin/themes/default/layouts/partials/contents-list/file-path.html +10 -0
- package/bin/themes/default/layouts/partials/contents-list/list-item-type.html +9 -0
- package/bin/themes/default/layouts/partials/contents-list/list-item-types/abstract.html +17 -0
- package/bin/themes/default/layouts/partials/contents-list/list-item-types/brief.html +7 -0
- package/bin/themes/default/layouts/partials/contents-list/list-item-types/default.html +9 -0
- package/bin/themes/default/layouts/partials/contents-list/list-item-types/grid.html +30 -0
- package/bin/themes/default/layouts/partials/contents-list/section-heading.html +5 -0
- package/bin/themes/default/layouts/partials/contents-list.html +207 -0
- package/bin/themes/default/layouts/partials/contributor-info.html +78 -0
- package/bin/themes/default/layouts/partials/contributor-list.html +102 -0
- package/bin/themes/default/layouts/partials/copyright.html +155 -0
- package/bin/themes/default/layouts/partials/debug-contents.html +8 -0
- package/bin/themes/default/layouts/partials/dublin-core.html +21 -0
- package/bin/themes/default/layouts/partials/error-message.html +19 -0
- package/bin/themes/default/layouts/partials/figure-caption.html +1 -0
- package/bin/themes/default/layouts/partials/figure-fallback.html +31 -0
- package/bin/themes/default/layouts/partials/figure-image.html +44 -0
- package/bin/themes/default/layouts/partials/figure-label.html +15 -0
- package/bin/themes/default/layouts/partials/figure-soundcloud.html +25 -0
- package/bin/themes/default/layouts/partials/figure-table.html +44 -0
- package/bin/themes/default/layouts/partials/figure-vimeo.html +24 -0
- package/bin/themes/default/layouts/partials/figure-website.html +21 -0
- package/bin/themes/default/layouts/partials/figure-youtube.html +23 -0
- package/bin/themes/default/layouts/partials/figures/caption.html +44 -0
- package/bin/themes/default/layouts/partials/figures/label.html +35 -0
- package/bin/themes/default/layouts/partials/figures/media-types/fallback.html +32 -0
- package/bin/themes/default/layouts/partials/figures/media-types/image.html +54 -0
- package/bin/themes/default/layouts/partials/figures/media-types/soundcloud.html +35 -0
- package/bin/themes/default/layouts/partials/figures/media-types/table.html +53 -0
- package/bin/themes/default/layouts/partials/figures/media-types/vimeo.html +34 -0
- package/bin/themes/default/layouts/partials/figures/media-types/website.html +24 -0
- package/bin/themes/default/layouts/partials/figures/media-types/youtube.html +29 -0
- package/bin/themes/default/layouts/partials/footer-buttons.html +29 -0
- package/bin/themes/default/layouts/partials/head.html +46 -0
- package/bin/themes/default/layouts/partials/icon.html +20 -0
- package/bin/themes/default/layouts/partials/icons-cc.html +86 -0
- package/bin/themes/default/layouts/partials/icons.html +54 -0
- package/bin/themes/default/layouts/partials/json-ld.html +117 -0
- package/bin/themes/default/layouts/partials/link-list-arrow.html +16 -0
- package/bin/themes/default/layouts/partials/link-list.html +11 -0
- package/bin/themes/default/layouts/partials/menu-header.html +25 -0
- package/bin/themes/default/layouts/partials/menu.html +69 -0
- package/bin/themes/default/layouts/partials/metadata.html +27 -0
- package/bin/themes/default/layouts/partials/navbar.html +173 -0
- package/bin/themes/default/layouts/partials/open-graph.html +43 -0
- package/bin/themes/default/layouts/partials/page-abstract.html +7 -0
- package/bin/themes/default/layouts/partials/page-bibliography.html +59 -0
- package/bin/themes/default/layouts/partials/page-class.html +9 -0
- package/bin/themes/default/layouts/partials/page-contributor.html +48 -0
- package/bin/themes/default/layouts/partials/page-header.html +22 -0
- package/bin/themes/default/layouts/partials/page-title.html +9 -0
- package/bin/themes/default/layouts/partials/page-tombstone.html +36 -0
- package/bin/themes/default/layouts/partials/pdf-info.html +20 -0
- package/bin/themes/default/layouts/partials/pdf-title-pages.html +39 -0
- package/bin/themes/default/layouts/partials/scripts.html +5 -0
- package/bin/themes/default/layouts/partials/search.html +52 -0
- package/bin/themes/default/layouts/partials/site-title.html +9 -0
- package/bin/themes/default/layouts/partials/tests/check-node-modules.html +9 -0
- package/bin/themes/default/layouts/partials/tests/check-page-one-class.html +21 -0
- package/bin/themes/default/layouts/partials/tests/check-page-weights.html +49 -0
- package/bin/themes/default/layouts/partials/tests/run.html +13 -0
- package/bin/themes/default/layouts/partials/twitter-card.html +23 -0
- package/bin/themes/default/layouts/shortcodes/q-bibliography.html +61 -0
- package/bin/themes/default/layouts/shortcodes/q-cite.html +79 -0
- package/bin/themes/default/layouts/shortcodes/q-class.html +3 -0
- package/bin/themes/default/layouts/shortcodes/q-contributor.html +327 -0
- package/bin/themes/default/layouts/shortcodes/q-contributors.html +11 -0
- package/bin/themes/default/layouts/shortcodes/q-figure-group.html +457 -0
- package/bin/themes/default/layouts/shortcodes/q-figure-new.html +70 -0
- package/bin/themes/default/layouts/shortcodes/q-figure-zoom.html +408 -0
- package/bin/themes/default/layouts/shortcodes/q-figure.html +86 -0
- package/bin/themes/default/layouts/sitemap.xml +24 -0
- package/bin/themes/default/layouts/splash/single.html +67 -0
- package/bin/themes/default/package-lock.json +13198 -0
- package/bin/themes/default/package.json +96 -0
- package/bin/themes/default/source/css/application.scss +30 -0
- package/bin/themes/default/source/css/bulma-components.scss +21 -0
- package/bin/themes/default/source/css/colors.scss +16 -0
- package/bin/themes/default/source/css/components/_all.scss +15 -0
- package/bin/themes/default/source/css/components/container.sass +35 -0
- package/bin/themes/default/source/css/components/quire-buttons.scss +95 -0
- package/bin/themes/default/source/css/components/quire-citation.scss +77 -0
- package/bin/themes/default/source/css/components/quire-contents-list.scss +329 -0
- package/bin/themes/default/source/css/components/quire-contributors.scss +131 -0
- package/bin/themes/default/source/css/components/quire-copyright.scss +28 -0
- package/bin/themes/default/source/css/components/quire-cover.scss +216 -0
- package/bin/themes/default/source/css/components/quire-deepzoom.scss +181 -0
- package/bin/themes/default/source/css/components/quire-entry.scss +651 -0
- package/bin/themes/default/source/css/components/quire-figure.scss +589 -0
- package/bin/themes/default/source/css/components/quire-map.scss +17 -0
- package/bin/themes/default/source/css/components/quire-menu.scss +209 -0
- package/bin/themes/default/source/css/components/quire-navbar.scss +366 -0
- package/bin/themes/default/source/css/components/quire-page.scss +920 -0
- package/bin/themes/default/source/css/components/quire-popup.scss +233 -0
- package/bin/themes/default/source/css/components/quire-search.scss +121 -0
- package/bin/themes/default/source/css/epub.scss +549 -0
- package/bin/themes/default/source/css/fonts.scss +159 -0
- package/bin/themes/default/source/css/layout.scss +186 -0
- package/bin/themes/default/source/css/print.scss +613 -0
- package/bin/themes/default/source/css/utilities.scss +345 -0
- package/bin/themes/default/source/css/variables.scss +144 -0
- package/bin/themes/default/source/fonts/ibm-plex-sans-condensed/ibmplexsanscondensed-bold.eot +0 -0
- package/bin/themes/default/source/fonts/ibm-plex-sans-condensed/ibmplexsanscondensed-bold.woff +0 -0
- package/bin/themes/default/source/fonts/ibm-plex-sans-condensed/ibmplexsanscondensed-bold.woff2 +0 -0
- package/bin/themes/default/source/fonts/ibm-plex-sans-condensed/ibmplexsanscondensed-bolditalic.eot +0 -0
- package/bin/themes/default/source/fonts/ibm-plex-sans-condensed/ibmplexsanscondensed-bolditalic.woff +0 -0
- package/bin/themes/default/source/fonts/ibm-plex-sans-condensed/ibmplexsanscondensed-bolditalic.woff2 +0 -0
- package/bin/themes/default/source/fonts/ibm-plex-sans-condensed/ibmplexsanscondensed-italic.eot +0 -0
- package/bin/themes/default/source/fonts/ibm-plex-sans-condensed/ibmplexsanscondensed-italic.woff +0 -0
- package/bin/themes/default/source/fonts/ibm-plex-sans-condensed/ibmplexsanscondensed-italic.woff2 +0 -0
- package/bin/themes/default/source/fonts/ibm-plex-sans-condensed/ibmplexsanscondensed-regular.eot +0 -0
- package/bin/themes/default/source/fonts/ibm-plex-sans-condensed/ibmplexsanscondensed-regular.woff +0 -0
- package/bin/themes/default/source/fonts/ibm-plex-sans-condensed/ibmplexsanscondensed-regular.woff2 +0 -0
- package/bin/themes/default/source/fonts/noto-sans/notosans-bold.eot +0 -0
- package/bin/themes/default/source/fonts/noto-sans/notosans-bold.woff +0 -0
- package/bin/themes/default/source/fonts/noto-sans/notosans-bold.woff2 +0 -0
- package/bin/themes/default/source/fonts/noto-sans/notosans-bolditalic.eot +0 -0
- package/bin/themes/default/source/fonts/noto-sans/notosans-bolditalic.woff +0 -0
- package/bin/themes/default/source/fonts/noto-sans/notosans-bolditalic.woff2 +0 -0
- package/bin/themes/default/source/fonts/noto-sans/notosans-italic.eot +0 -0
- package/bin/themes/default/source/fonts/noto-sans/notosans-italic.woff +0 -0
- package/bin/themes/default/source/fonts/noto-sans/notosans-italic.woff2 +0 -0
- package/bin/themes/default/source/fonts/noto-sans/notosans-regular.eot +0 -0
- package/bin/themes/default/source/fonts/noto-sans/notosans-regular.woff +0 -0
- package/bin/themes/default/source/fonts/noto-sans/notosans-regular.woff2 +0 -0
- package/bin/themes/default/source/fonts/noto-serif/notoserif-bold.eot +0 -0
- package/bin/themes/default/source/fonts/noto-serif/notoserif-bold.woff +0 -0
- package/bin/themes/default/source/fonts/noto-serif/notoserif-bold.woff2 +0 -0
- package/bin/themes/default/source/fonts/noto-serif/notoserif-bolditalic.eot +0 -0
- package/bin/themes/default/source/fonts/noto-serif/notoserif-bolditalic.woff +0 -0
- package/bin/themes/default/source/fonts/noto-serif/notoserif-bolditalic.woff2 +0 -0
- package/bin/themes/default/source/fonts/noto-serif/notoserif-italic.eot +0 -0
- package/bin/themes/default/source/fonts/noto-serif/notoserif-italic.woff +0 -0
- package/bin/themes/default/source/fonts/noto-serif/notoserif-italic.woff2 +0 -0
- package/bin/themes/default/source/fonts/noto-serif/notoserif-regular.eot +0 -0
- package/bin/themes/default/source/fonts/noto-serif/notoserif-regular.woff +0 -0
- package/bin/themes/default/source/fonts/noto-serif/notoserif-regular.woff2 +0 -0
- package/bin/themes/default/source/img/cover.png +0 -0
- package/bin/themes/default/source/img/fullscreen.png +0 -0
- package/bin/themes/default/source/img/icons/arrow_forward.png +0 -0
- package/bin/themes/default/source/img/icons/baseline-headset-24px.png +0 -0
- package/bin/themes/default/source/img/icons/baseline-videocam-24px.png +0 -0
- package/bin/themes/default/source/img/icons/baseline-website-24px.png +0 -0
- package/bin/themes/default/source/img/icons/cc-by-nc-nd.png +0 -0
- package/bin/themes/default/source/img/icons/cc-by-nc-sa.png +0 -0
- package/bin/themes/default/source/img/icons/cc-by-nc.png +0 -0
- package/bin/themes/default/source/img/icons/cc-by-nd.png +0 -0
- package/bin/themes/default/source/img/icons/cc-by-sa.png +0 -0
- package/bin/themes/default/source/img/icons/cc-by.png +0 -0
- package/bin/themes/default/source/img/icons/cc-zero.png +0 -0
- package/bin/themes/default/source/img/icons/close.png +0 -0
- package/bin/themes/default/source/img/icons/down-arrow.png +0 -0
- package/bin/themes/default/source/img/icons/download.png +0 -0
- package/bin/themes/default/source/img/icons/favicon.ico +0 -0
- package/bin/themes/default/source/img/icons/home.png +0 -0
- package/bin/themes/default/source/img/icons/left-arrow.png +0 -0
- package/bin/themes/default/source/img/icons/link.png +0 -0
- package/bin/themes/default/source/img/icons/nav.png +0 -0
- package/bin/themes/default/source/img/icons/right-arrow.png +0 -0
- package/bin/themes/default/source/img/icons/search.png +0 -0
- package/bin/themes/default/source/img/icons/start.png +0 -0
- package/bin/themes/default/source/img/layers-2x.png +0 -0
- package/bin/themes/default/source/img/layers.png +0 -0
- package/bin/themes/default/source/img/marker-icon.png +0 -0
- package/bin/themes/default/source/img/pattern-spiral-overlay.png +0 -0
- package/bin/themes/default/source/img/promo-screenshots/classic-catalogue.png +0 -0
- package/bin/themes/default/source/img/promo-screenshots/classic-entry.png +0 -0
- package/bin/themes/default/source/img/promo-screenshots/classic-essay.png +0 -0
- package/bin/themes/default/source/img/promo-screenshots/modern-contents.png +0 -0
- package/bin/themes/default/source/img/promo-screenshots/modern-cover.png +0 -0
- package/bin/themes/default/source/img/promo-screenshots/modern-essay.png +0 -0
- package/bin/themes/default/source/js/application.js +604 -0
- package/bin/themes/default/source/js/deepzoom.js +186 -0
- package/bin/themes/default/source/js/epub.js +9 -0
- package/bin/themes/default/source/js/fullscreen.js +190 -0
- package/bin/themes/default/source/js/helper.js +197 -0
- package/bin/themes/default/source/js/map.js +94 -0
- package/bin/themes/default/source/js/navigation.js +59 -0
- package/bin/themes/default/source/js/popup.js +311 -0
- package/bin/themes/default/source/js/search.js +35 -0
- package/bin/themes/default/source/js/soundcloud-api.js +1 -0
- package/bin/themes/default/static/css/epub.css +401 -0
- package/bin/themes/default/static/fonts/MaterialIcons-Regular.eot +0 -0
- package/bin/themes/default/static/fonts/MaterialIcons-Regular.woff +0 -0
- package/bin/themes/default/static/fonts/MaterialIcons-Regular.woff2 +0 -0
- package/bin/themes/default/static/fonts/ibmplexsanscondensed-bold.eot +0 -0
- package/bin/themes/default/static/fonts/ibmplexsanscondensed-bold.woff +0 -0
- package/bin/themes/default/static/fonts/ibmplexsanscondensed-bold.woff2 +0 -0
- package/bin/themes/default/static/fonts/ibmplexsanscondensed-bolditalic.eot +0 -0
- package/bin/themes/default/static/fonts/ibmplexsanscondensed-bolditalic.woff +0 -0
- package/bin/themes/default/static/fonts/ibmplexsanscondensed-bolditalic.woff2 +0 -0
- package/bin/themes/default/static/fonts/ibmplexsanscondensed-italic.eot +0 -0
- package/bin/themes/default/static/fonts/ibmplexsanscondensed-italic.woff +0 -0
- package/bin/themes/default/static/fonts/ibmplexsanscondensed-italic.woff2 +0 -0
- package/bin/themes/default/static/fonts/ibmplexsanscondensed-regular.eot +0 -0
- package/bin/themes/default/static/fonts/ibmplexsanscondensed-regular.woff +0 -0
- package/bin/themes/default/static/fonts/ibmplexsanscondensed-regular.woff2 +0 -0
- package/bin/themes/default/static/fonts/notosans-bold.eot +0 -0
- package/bin/themes/default/static/fonts/notosans-bold.woff +0 -0
- package/bin/themes/default/static/fonts/notosans-bold.woff2 +0 -0
- package/bin/themes/default/static/fonts/notosans-bolditalic.eot +0 -0
- package/bin/themes/default/static/fonts/notosans-bolditalic.woff +0 -0
- package/bin/themes/default/static/fonts/notosans-bolditalic.woff2 +0 -0
- package/bin/themes/default/static/fonts/notosans-italic.eot +0 -0
- package/bin/themes/default/static/fonts/notosans-italic.woff +0 -0
- package/bin/themes/default/static/fonts/notosans-italic.woff2 +0 -0
- package/bin/themes/default/static/fonts/notosans-regular.eot +0 -0
- package/bin/themes/default/static/fonts/notosans-regular.woff +0 -0
- package/bin/themes/default/static/fonts/notosans-regular.woff2 +0 -0
- package/bin/themes/default/static/fonts/notoserif-bold.eot +0 -0
- package/bin/themes/default/static/fonts/notoserif-bold.woff +0 -0
- package/bin/themes/default/static/fonts/notoserif-bold.woff2 +0 -0
- package/bin/themes/default/static/fonts/notoserif-bolditalic.eot +0 -0
- package/bin/themes/default/static/fonts/notoserif-bolditalic.woff +0 -0
- package/bin/themes/default/static/fonts/notoserif-bolditalic.woff2 +0 -0
- package/bin/themes/default/static/fonts/notoserif-italic.eot +0 -0
- package/bin/themes/default/static/fonts/notoserif-italic.woff +0 -0
- package/bin/themes/default/static/fonts/notoserif-italic.woff2 +0 -0
- package/bin/themes/default/static/fonts/notoserif-regular.eot +0 -0
- package/bin/themes/default/static/fonts/notoserif-regular.woff +0 -0
- package/bin/themes/default/static/fonts/notoserif-regular.woff2 +0 -0
- package/bin/themes/default/static/img/baseline-website-24px.png +0 -0
- package/bin/themes/default/static/img/cover.png +0 -0
- package/bin/themes/default/static/img/fullscreen.png +0 -0
- package/bin/themes/default/static/img/fullscreen@2x.png +0 -0
- package/bin/themes/default/static/img/icons/arrow_forward.png +0 -0
- package/bin/themes/default/static/img/icons/baseline-headset-24px.png +0 -0
- package/bin/themes/default/static/img/icons/baseline-videocam-24px.png +0 -0
- package/bin/themes/default/static/img/icons/baseline-website-24px.png +0 -0
- package/bin/themes/default/static/img/icons/cc-by-nc-nd.png +0 -0
- package/bin/themes/default/static/img/icons/cc-by-nc-sa.png +0 -0
- package/bin/themes/default/static/img/icons/cc-by-nc.png +0 -0
- package/bin/themes/default/static/img/icons/cc-by-nd.png +0 -0
- package/bin/themes/default/static/img/icons/cc-by-sa.png +0 -0
- package/bin/themes/default/static/img/icons/cc-by.png +0 -0
- package/bin/themes/default/static/img/icons/cc-zero.png +0 -0
- package/bin/themes/default/static/img/icons/close.png +0 -0
- package/bin/themes/default/static/img/icons/down-arrow.png +0 -0
- package/bin/themes/default/static/img/icons/download.png +0 -0
- package/bin/themes/default/static/img/icons/favicon.ico +0 -0
- package/bin/themes/default/static/img/icons/home.png +0 -0
- package/bin/themes/default/static/img/icons/left-arrow.png +0 -0
- package/bin/themes/default/static/img/icons/link.png +0 -0
- package/bin/themes/default/static/img/icons/nav.png +0 -0
- package/bin/themes/default/static/img/icons/right-arrow.png +0 -0
- package/bin/themes/default/static/img/icons/search.png +0 -0
- package/bin/themes/default/static/img/icons/soundcloud.png +0 -0
- package/bin/themes/default/static/img/icons/start.png +0 -0
- package/bin/themes/default/static/img/icons/vimeo.png +0 -0
- package/bin/themes/default/static/img/icons/website.png +0 -0
- package/bin/themes/default/static/img/icons/youtube.png +0 -0
- package/bin/themes/default/static/img/layers-2x.png +0 -0
- package/bin/themes/default/static/img/layers.png +0 -0
- package/bin/themes/default/static/img/marker-icon.png +0 -0
- package/bin/themes/default/static/img/pattern-spiral-overlay.png +0 -0
- package/bin/themes/default/tests/.gitkeep +0 -0
- package/bin/themes/default/tests/e2e/.eslintrc.js +9 -0
- package/bin/themes/default/tests/e2e/fixtures/blns.json +483 -0
- package/bin/themes/default/tests/e2e/plugins/index.js +22 -0
- package/bin/themes/default/tests/e2e/specs/quire-contents.spec.js +52 -0
- package/bin/themes/default/tests/e2e/specs/quire-contributors.spec.js +66 -0
- package/bin/themes/default/tests/e2e/specs/quire-entry.spec.js +104 -0
- package/bin/themes/default/tests/e2e/specs/quire-essay.spec.js +105 -0
- package/bin/themes/default/tests/e2e/specs/quire-menu.spec.js +38 -0
- package/bin/themes/default/tests/e2e/specs/quire-modal.spec.js +69 -0
- package/bin/themes/default/tests/e2e/specs/quire-next-back-buttons.spec.js +27 -0
- package/bin/themes/default/tests/e2e/specs/quire-page.spec.js +28 -0
- package/bin/themes/default/tests/e2e/specs/quire-search.spec.js +48 -0
- package/bin/themes/default/tests/e2e/specs/quire-splash.spec.js +38 -0
- package/bin/themes/default/tests/e2e/support/commands.js +25 -0
- package/bin/themes/default/tests/e2e/support/index.js +20 -0
- package/bin/themes/default/theme.toml +22 -0
- package/bin/themes/default/tsconfig.json +5 -0
- package/bin/themes/default/webpack/webpack.config.dev.js +128 -0
- package/bin/themes/default/webpack/webpack.config.epub.js +140 -0
- package/bin/themes/default/webpack/webpack.config.pdf.js +135 -0
- package/bin/themes/default/webpack/webpack.config.prod.js +133 -0
- package/package.json +1 -1
- package/index.js +0 -20
|
@@ -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,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 "Faure 1909" "304" "1909" >}}" -}}
|
|
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 "Faure 1909" >}}<br /><br />id: "Faure 1909"" -}}
|
|
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 -}}
|