@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,9 @@
|
|
|
1
|
+
<a href="{{ .Page.Permalink | relURL }}">
|
|
2
|
+
|
|
3
|
+
{{- with .Page.Params.label }}{{ . }}{{ $.Site.Params.pageLabelDivider }}{{ end -}}
|
|
4
|
+
|
|
5
|
+
{{- partial "page-title.html" . | markdownify -}}
|
|
6
|
+
|
|
7
|
+
{{- if .Page.Params.contributor }}<span class="contributor"> — {{ partial "contributor-list.html" (dict "range" .Page.Params.contributor "contributorType" "all" "listType" "string" "Site" .Site) }}</span>{{ end -}}
|
|
8
|
+
|
|
9
|
+
<span class="arrow remove-from-epub"> {{- partial "icon.html" (dict "type" "arrow-forward" "description" "") -}}</span></a>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<a href="{{ .Page.Permalink | relURL }}">
|
|
2
|
+
<div class="card {{ if or .Page.Params.image .Page.Params.object }}image{{ else }}no-image{{ end }}{{ if and (ne .Page.Section "") (eq .Page.Slug ".") }} slug-page{{ end }}">
|
|
3
|
+
{{ if .Page.Params.image }}
|
|
4
|
+
{{ partial "contents-list/card-image" (dict "site" .Site "src" .Page.Params.image) }}
|
|
5
|
+
{{ else if .Page.Params.object -}}
|
|
6
|
+
{{ range .Page.Params.object -}}
|
|
7
|
+
{{ if .id -}}
|
|
8
|
+
{{ range where $.Site.Data.objects.object_list "id" "eq" .id -}}
|
|
9
|
+
{{ range first 1 .figure -}}
|
|
10
|
+
{{ if .id -}}
|
|
11
|
+
{{ range where $.Site.Data.figures.figure_list "id" "eq" .id -}}
|
|
12
|
+
{{ partial "contents-list/card-image" (dict "site" .Site "src" .src) }}
|
|
13
|
+
{{- end -}}
|
|
14
|
+
{{ else if .src -}}
|
|
15
|
+
{{ partial "contents-list/card-image" (dict "site" .Site "src" .src) }}
|
|
16
|
+
{{- end -}}
|
|
17
|
+
{{- end -}}
|
|
18
|
+
{{- end -}}
|
|
19
|
+
{{- end -}}
|
|
20
|
+
{{- end -}}
|
|
21
|
+
{{- end -}}
|
|
22
|
+
<div class="card-content">
|
|
23
|
+
{{- with .Page.Params.label }}{{ . }}{{ $.Site.Params.pageLabelDivider }}{{ end }}
|
|
24
|
+
|
|
25
|
+
{{ partial "page-title.html" . | markdownify }}
|
|
26
|
+
|
|
27
|
+
{{ if .Page.Params.contributor }}<span class="contributor"> — {{ partial "contributor-list.html" (dict "range" .Page.Params.contributor "contributorType" "all" "listType" "string" "Site" .Site) }}</span>{{ end -}}
|
|
28
|
+
|
|
29
|
+
<span class="arrow remove-from-epub"> {{- partial "icon.html" (dict "type" "arrow-forward" "description" "") -}}</span></div>
|
|
30
|
+
</div></a>
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
{{/*
|
|
2
|
+
This partial generates a contents list. It is used in the publication menu
|
|
3
|
+
and in the "contents" page type, but could be extended for further use. It
|
|
4
|
+
expects five specific variables to be passed:
|
|
5
|
+
|
|
6
|
+
site .Site
|
|
7
|
+
contentsScope Typically .Site.Pages or narrowed down to pages within a
|
|
8
|
+
specific section.
|
|
9
|
+
contentsType Must be either "short" or "full". Often defined in
|
|
10
|
+
config.yml. Short doesn't display any sub-section pages.
|
|
11
|
+
contentsLocation Must be either ".Params.menu" or ".Params.toc". Determines
|
|
12
|
+
in what context the partial is being shown so that
|
|
13
|
+
individual pages can be hidden as called for. For example,
|
|
14
|
+
if contentsLocation is "toc" any pages in the publication
|
|
15
|
+
with "toc: false" will be omitted from the generated
|
|
16
|
+
contents list. The "menu" option also shows a shorter
|
|
17
|
+
version of each page in the list, with no subtitle or
|
|
18
|
+
contributors.
|
|
19
|
+
contentsPage Typically . This just passes the page context through to
|
|
20
|
+
allow a Scratch variable to be set when creating sections.
|
|
21
|
+
|
|
22
|
+
Content can either be in top-level files in the `content` directory, or
|
|
23
|
+
in sub-directories to create sections. Currently, nested sections are not
|
|
24
|
+
supported.
|
|
25
|
+
|
|
26
|
+
For users to cstomize their publiction, this partial response to `class` values in the page YAML as well.
|
|
27
|
+
|
|
28
|
+
`grid` A grid of cards, using images defined in indivudal page
|
|
29
|
+
yaml when avaialble
|
|
30
|
+
|
|
31
|
+
`abstract` Title and contributor headings, and a page abstract
|
|
32
|
+
if one is provided, or the page Summary. If `abstract` is
|
|
33
|
+
an empty value `""`, no abstract or summary will be shown
|
|
34
|
+
in the contents list.
|
|
35
|
+
|
|
36
|
+
`list` Lists the title, subtitle and contributors as included. The
|
|
37
|
+
default value, if no `class` is specified.
|
|
38
|
+
|
|
39
|
+
`brief` Lists only the title, or short_title when available.
|
|
40
|
+
|
|
41
|
+
EXAMPLE PARTIAL USE:
|
|
42
|
+
partial "contents-list.html" (dict "site" .Site "contentsScope" .Site.Pages
|
|
43
|
+
"contentsType" .Site.Params.tocType "contentsLocation" ".Params.toc"
|
|
44
|
+
"contentsPage" . )
|
|
45
|
+
|
|
46
|
+
*/}}
|
|
47
|
+
|
|
48
|
+
{{- $contentsType := .contentsType }}
|
|
49
|
+
{{ $contentsLocation := .contentsLocation }}
|
|
50
|
+
{{ $imageDir := .imageDir -}}
|
|
51
|
+
|
|
52
|
+
{{- .contentsPage.Scratch.Set "renderedSection" "" -}}
|
|
53
|
+
|
|
54
|
+
{{/* Start a list of pages, but remove data & those hidden from toc/menu */}}
|
|
55
|
+
{{/* ---------------------------------------------------------------------- */}}
|
|
56
|
+
{{ $pages := where .contentsScope ".Kind" "page" }}
|
|
57
|
+
{{ $pages := where $pages ".Type" "!=" "data" }}
|
|
58
|
+
{{ $pages := where $pages .contentsLocation "!=" "false" }}
|
|
59
|
+
|
|
60
|
+
{{/* Remove pages based on output type */}}
|
|
61
|
+
{{/* ---------------------------------------------------------------------- */}}
|
|
62
|
+
{{- if eq .site.Params.pdf true -}}
|
|
63
|
+
{{ $pages := where $pages "Params.pdf" "!=" "false" }}
|
|
64
|
+
{{ $.contentsPage.Scratch.Set "pages" $pages }}
|
|
65
|
+
{{- else if eq .site.Params.epub true -}}
|
|
66
|
+
{{ $pages := where $pages "Params.epub" "!=" "false" }}
|
|
67
|
+
{{ $.contentsPage.Scratch.Set "pages" $pages }}
|
|
68
|
+
{{- else -}}
|
|
69
|
+
{{ $pages := where $pages "Params.online" "!=" "false" }}
|
|
70
|
+
{{ $.contentsPage.Scratch.Set "pages" $pages }}
|
|
71
|
+
{{- end -}}
|
|
72
|
+
{{ $pages := $.contentsPage.Scratch.Get "pages" }}
|
|
73
|
+
{{ $.contentsPage.Scratch.Delete "pages" }}
|
|
74
|
+
|
|
75
|
+
{{- range first 1 (where $pages "Params.class" "in" "page-one") -}}
|
|
76
|
+
{{- $.contentsPage.Scratch.Set "pageOneWeight" .Weight -}}
|
|
77
|
+
{{- end -}}
|
|
78
|
+
|
|
79
|
+
<ul>
|
|
80
|
+
{{- range $pages -}}
|
|
81
|
+
{{- if or (eq .Section "") (and (ne $.contentsPage.Section "") (ne $.contentsLocation ".Params.menu" )) -}}
|
|
82
|
+
|
|
83
|
+
{{- if eq $.contentsLocation ".Params.menu" }}
|
|
84
|
+
<li class="page-item">{{ template "contents-item-menu" . -}}</li>
|
|
85
|
+
{{ end -}}
|
|
86
|
+
|
|
87
|
+
{{- if and (eq $.contentsLocation ".Params.toc") (ne $.contentsPage.File.UniqueID .File.UniqueID) }}
|
|
88
|
+
<li class="page-item">{{ template "contents-item-toc" (dict "class" $.contentsPage.Params.class "Page" . "Site" .Site "pageOne" ($.contentsPage.Scratch.Get "pageOneWeight") ) -}}</li>
|
|
89
|
+
{{ end -}}
|
|
90
|
+
|
|
91
|
+
{{- else if and .Section (ne .Section ($.contentsPage.Scratch.Get "renderedSection")) -}}
|
|
92
|
+
|
|
93
|
+
{{- $.contentsPage.Scratch.Set "renderedSection" .Section -}}
|
|
94
|
+
|
|
95
|
+
{{- if eq .Params.slug "." -}}
|
|
96
|
+
{{- if eq $.contentsLocation ".Params.menu" }}
|
|
97
|
+
<li class="section-item">{{ template "contents-item-menu" . -}}
|
|
98
|
+
{{- end -}}
|
|
99
|
+
{{- if and (eq $.contentsLocation ".Params.toc") (ne $.contentsPage.File.UniqueID .File.UniqueID) }}
|
|
100
|
+
<li class="section-item">{{ template "contents-item-toc" (dict "class" $.contentsPage.Params.class "Page" . "Site" .Site "pageOne" ($.contentsPage.Scratch.Get "pageOneWeight") ) -}}
|
|
101
|
+
{{- end -}}
|
|
102
|
+
{{- else -}}
|
|
103
|
+
|
|
104
|
+
{{- range first 1 (where $pages "Section" .Section) }}
|
|
105
|
+
<li class="section-item no-landing">{{ if and (eq $.contentsLocation ".Params.menu") (eq $contentsType "short") }}<a href="{{ .Permalink | relURL }}"{{- if lt .Weight ($.contentsPage.Scratch.Get "pageOneWeight") }} class="frontmatter-page"{{ end }}>{{ .Section | title }}</a>{{ else }}<div class="list-header">{{ .Section | humanize | title }}</div>{{ end -}}
|
|
106
|
+
{{- end -}}
|
|
107
|
+
|
|
108
|
+
{{- end -}}
|
|
109
|
+
|
|
110
|
+
{{- if eq $contentsType "full" -}}
|
|
111
|
+
<ul>
|
|
112
|
+
{{- range where $pages "Section" .Section -}}
|
|
113
|
+
{{ if ne .Params.slug "." -}}
|
|
114
|
+
{{ if eq $.contentsLocation ".Params.menu" }}
|
|
115
|
+
<li class="page-item">{{ template "contents-item-menu" . -}}</li>
|
|
116
|
+
{{ else }}
|
|
117
|
+
<li class="page-item">{{ template "contents-item-toc" (dict "class" $.contentsPage.Params.class "Page" . "Site" .Site "pageOne" ($.contentsPage.Scratch.Get "pageOneWeight") ) -}}</li>
|
|
118
|
+
{{ end -}}
|
|
119
|
+
{{ end -}}
|
|
120
|
+
{{- end -}}
|
|
121
|
+
</ul>
|
|
122
|
+
{{- end -}}
|
|
123
|
+
|
|
124
|
+
</li>
|
|
125
|
+
|
|
126
|
+
{{- end -}}
|
|
127
|
+
{{- end -}}
|
|
128
|
+
</ul>
|
|
129
|
+
|
|
130
|
+
{{- define "contents-item-toc" }}
|
|
131
|
+
{{ if isset $.Site.Params "imagedir" }}
|
|
132
|
+
{{ $.Page.Scratch.Set "imageDir" $.Site.Params.imageDir }}
|
|
133
|
+
{{ else }}
|
|
134
|
+
{{ $.Page.Scratch.Set "imagedir" "" }}
|
|
135
|
+
{{- end -}}
|
|
136
|
+
{{- if in .class "grid" -}}
|
|
137
|
+
<a href="{{ .Page.Permalink | relURL }}"{{- if lt .Page.Weight .pageOne }} class="frontmatter-page"{{ end }}><div class="card {{ if or .Page.Params.image .Page.Params.object }}image{{ else }}no-image{{ end }}{{ if and (ne .Page.Section "") (eq .Page.Slug ".") }} slug-page{{ end }}">
|
|
138
|
+
{{ if .Page.Params.image }}
|
|
139
|
+
{{ $imgPath := printf "%s/%s" ($.Page.Scratch.Get "imageDir") .Page.Params.image }}
|
|
140
|
+
<div class="card-image">
|
|
141
|
+
<figure class="image">
|
|
142
|
+
<img src="{{ $imgPath | relURL }}" alt="" />
|
|
143
|
+
</figure>
|
|
144
|
+
</div>
|
|
145
|
+
{{ else if .Page.Params.object -}}
|
|
146
|
+
{{ range .Page.Params.object -}}
|
|
147
|
+
{{ if .id -}}
|
|
148
|
+
{{ range where $.Site.Data.objects.object_list "id" "eq" .id -}}
|
|
149
|
+
{{ range first 1 .figure -}}
|
|
150
|
+
{{ if .id -}}
|
|
151
|
+
{{ range where $.Site.Data.figures.figure_list "id" "eq" .id -}}
|
|
152
|
+
{{ template "contents-image" (dict "imageDir" ($.Page.Scratch.Get "imageDir") "figure" . ) -}}
|
|
153
|
+
{{- end -}}
|
|
154
|
+
{{ else if .src -}}
|
|
155
|
+
{{ template "contents-image" (dict "imageDir" ($.Page.Scratch.Get "imageDir") "figure" . ) -}}
|
|
156
|
+
{{- end -}}
|
|
157
|
+
{{- end -}}
|
|
158
|
+
{{- end -}}
|
|
159
|
+
{{ else if .figure -}}
|
|
160
|
+
{{ range first 1 .figure -}}
|
|
161
|
+
{{ if .id -}}
|
|
162
|
+
{{ range where $.Site.Data.figures.figure_list "id" "eq" .id -}}
|
|
163
|
+
{{ template "contents-image" (dict "imageDir" ($.Page.Scratch.Get "imageDir") "figure" . ) -}}
|
|
164
|
+
{{- end -}}
|
|
165
|
+
{{ else if .src -}}
|
|
166
|
+
{{ template "contents-image" (dict "imageDir" ($.Page.Scratch.Get "imageDir") "figure" . ) -}}
|
|
167
|
+
{{- end -}}
|
|
168
|
+
{{- end -}}
|
|
169
|
+
{{- end -}}
|
|
170
|
+
{{- end -}}
|
|
171
|
+
{{- end -}}
|
|
172
|
+
<div class="card-content">
|
|
173
|
+
<div class="title">
|
|
174
|
+
{{- with .Page.Params.label }}{{ . }}{{ $.Site.Params.pageLabelDivider }}{{ end }}{{ if and .Page.Params.short_title (in .class "brief")}}{{ .Page.Params.short_title | markdownify }}{{ else if in .class "brief" }}{{ .Page.Title | markdownify }}{{ else }}{{ partial "page-title.html" . | markdownify }}{{ if .Page.Params.contributor }}<span class="contributor"> — {{ partial "contributor-list.html" (dict "range" .Page.Params.contributor "contributorType" "all" "listType" "string" "Site" .Site) }}</span>{{- end -}}{{- end -}}<span class="arrow remove-from-epub"> {{- partial "icon.html" (dict "type" "arrow-forward" "description" "") -}}</span></div>
|
|
175
|
+
</div>
|
|
176
|
+
</div></a>
|
|
177
|
+
|
|
178
|
+
{{- else -}}
|
|
179
|
+
|
|
180
|
+
<div class="title"><a href="{{ .Page.Permalink | relURL }}"{{- if lt .Page.Weight .pageOne }} class="frontmatter-page"{{ end }}>{{ with .Page.Params.label }}{{ . }}{{ $.Site.Params.pageLabelDivider }}{{ end }}{{ if and .Page.Params.short_title (in .class "brief")}}{{ .Page.Params.short_title | markdownify }}{{ else if in .class "brief" }}{{ .Page.Title | markdownify }}{{ else }}{{ partial "page-title.html" . | markdownify }}{{ if .Page.Params.contributor }}<span class="contributor"> — {{ partial "contributor-list.html" (dict "range" .Page.Params.contributor "contributorType" "all" "listType" "string" "Site" .Site) }}</span>{{- end -}}{{- end -}}<span class="arrow remove-from-epub"> {{- partial "icon.html" (dict "type" "arrow-forward" "description" "") -}}</span></a></div>
|
|
181
|
+
|
|
182
|
+
{{ if and (in .class "abstract") (ne .Page.Params.abstract "") }}
|
|
183
|
+
<div class="abstract-text">
|
|
184
|
+
{{ if .Page.Params.abstract }}
|
|
185
|
+
{{/* Returns abstract with any links stripped out ------ */}}
|
|
186
|
+
{{ .Page.Params.abstract | markdownify | replaceRE "</?a(|\\s*[^>]+)>" "" | htmlUnescape | safeHTML }}
|
|
187
|
+
{{ else }}
|
|
188
|
+
{{ .Page.Summary }}
|
|
189
|
+
{{- end -}}
|
|
190
|
+
</div>
|
|
191
|
+
{{ end -}}
|
|
192
|
+
|
|
193
|
+
{{ end -}}
|
|
194
|
+
{{ end -}}
|
|
195
|
+
|
|
196
|
+
{{- define "contents-item-menu" }}
|
|
197
|
+
<a href="{{ .Permalink | relURL }}">{{ with .Params.label }}{{ . }}{{ $.Site.Params.pageLabelDivider }}{{ end }}{{ if .Params.short_title }}{{ .Params.short_title | markdownify }}{{ else }}{{ .Title | markdownify }}{{- end -}}</a>
|
|
198
|
+
{{ end -}}
|
|
199
|
+
|
|
200
|
+
{{- define "contents-image" }}
|
|
201
|
+
{{ $imgPath := printf "%s/%s" .imageDir .figure.src }}
|
|
202
|
+
<div class="card-image">
|
|
203
|
+
<figure class="image">
|
|
204
|
+
<img src="{{ $imgPath | relURL }}" alt="" />
|
|
205
|
+
</figure>
|
|
206
|
+
</div>
|
|
207
|
+
{{ end -}}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{{/*
|
|
2
|
+
|
|
3
|
+
This contributor-info partial is used in the q-contirbutors shortcode.
|
|
4
|
+
It cycles through the contributors in the given range and create a
|
|
5
|
+
"contributor" object with an index of all the relevant data for that
|
|
6
|
+
contributor. The index values are assigned as follows:
|
|
7
|
+
|
|
8
|
+
0 name (combinded first_name/last_name or full_name)
|
|
9
|
+
1 title
|
|
10
|
+
2 affiliation
|
|
11
|
+
3 bio
|
|
12
|
+
4 url
|
|
13
|
+
5 pic
|
|
14
|
+
|
|
15
|
+
This "contributor" object is then added to a "contributorlist" Scratch map.
|
|
16
|
+
The contributors are added to this larger list either by last_name, or by
|
|
17
|
+
the file_as value. This alphabetizes the list.
|
|
18
|
+
|
|
19
|
+
*/}}
|
|
20
|
+
|
|
21
|
+
{{ $errorIncompleteName := dict "shortcode" "q-contributor" "message" "One of the contributors in this range doesn’t have a complete name. All contributors must have either a `full_name` value, or values for both `first_name` and `last_name`." "example" "" }}
|
|
22
|
+
|
|
23
|
+
{{- if .contributor.full_name }}
|
|
24
|
+
{{ $name := .contributor.full_name }}
|
|
25
|
+
{{- .Page.Scratch.SetInMap "contributor" "0" $name -}}
|
|
26
|
+
{{ else if and .contributor.first_name .contributor.last_name }}
|
|
27
|
+
{{ $name := add (add .contributor.first_name " ") .contributor.last_name }}
|
|
28
|
+
{{- .Page.Scratch.SetInMap "contributor" "0" $name -}}
|
|
29
|
+
{{ else }}
|
|
30
|
+
{{- partial "error-message.html" $errorIncompleteName -}}
|
|
31
|
+
{{- .Page.Scratch.SetInMap "contributor" "0" "**ERROR: NAME**" -}}
|
|
32
|
+
{{ end }}
|
|
33
|
+
|
|
34
|
+
{{- if .contributor.title -}}
|
|
35
|
+
{{- .Page.Scratch.SetInMap "contributor" "1" .contributor.title -}}
|
|
36
|
+
{{- else -}}
|
|
37
|
+
{{- .Page.Scratch.SetInMap "contributor" "1" "n/a" -}}
|
|
38
|
+
{{- end -}}
|
|
39
|
+
|
|
40
|
+
{{- if .contributor.affiliation -}}
|
|
41
|
+
{{- .Page.Scratch.SetInMap "contributor" "2" .contributor.affiliation -}}
|
|
42
|
+
{{- else -}}
|
|
43
|
+
{{- .Page.Scratch.SetInMap "contributor" "2" "n/a" -}}
|
|
44
|
+
{{- end -}}
|
|
45
|
+
|
|
46
|
+
{{- if .contributor.bio -}}
|
|
47
|
+
{{- .Page.Scratch.SetInMap "contributor" "3" .contributor.bio -}}
|
|
48
|
+
{{- else -}}
|
|
49
|
+
{{- .Page.Scratch.SetInMap "contributor" "3" "n/a" -}}
|
|
50
|
+
{{- end -}}
|
|
51
|
+
|
|
52
|
+
{{- if .contributor.url -}}
|
|
53
|
+
{{- .Page.Scratch.SetInMap "contributor" "4" .contributor.url -}}
|
|
54
|
+
{{- else -}}
|
|
55
|
+
{{- .Page.Scratch.SetInMap "contributor" "4" "n/a" -}}
|
|
56
|
+
{{- end -}}
|
|
57
|
+
|
|
58
|
+
{{- if .contributor.pic -}}
|
|
59
|
+
{{- .Page.Scratch.SetInMap "contributor" "5" .contributor.pic -}}
|
|
60
|
+
{{- else -}}
|
|
61
|
+
{{- .Page.Scratch.SetInMap "contributor" "5" "n/a" -}}
|
|
62
|
+
{{- end -}}
|
|
63
|
+
|
|
64
|
+
{{- $contributor := (.Page.Scratch.GetSortedMapValues "contributor") -}}
|
|
65
|
+
|
|
66
|
+
{{- if .index -}}
|
|
67
|
+
{{ $name := .index }}
|
|
68
|
+
{{- .Page.Scratch.SetInMap "contributorlist" $name $contributor -}}
|
|
69
|
+
{{- else if .contributor.file_as -}}
|
|
70
|
+
{{- $name := lower (replace (replace .contributor.file_as " " "") "," "") -}}
|
|
71
|
+
{{- .Page.Scratch.SetInMap "contributorlist" $name $contributor -}}
|
|
72
|
+
{{- else if and .contributor.last_name .contributor.first_name -}}
|
|
73
|
+
{{- $name := lower (replace (add .contributor.last_name .contributor.first_name) " " "") -}}
|
|
74
|
+
{{- .Page.Scratch.SetInMap "contributorlist" $name $contributor -}}
|
|
75
|
+
{{ else }}
|
|
76
|
+
{{- $name := lower (replace .contributor.full_name " " "") -}}
|
|
77
|
+
{{- .Page.Scratch.SetInMap "contributorlist" $name $contributor -}}
|
|
78
|
+
{{- end -}}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
{{/*
|
|
2
|
+
|
|
3
|
+
A simple partial to create a list of contributor names. Looks first for
|
|
4
|
+
.full_name and otherwise combines first and last. Expects three values to be
|
|
5
|
+
passed in:
|
|
6
|
+
|
|
7
|
+
range The range of contributors for the list. For example,
|
|
8
|
+
.Site.Data.publication.contributor or .Params.contributor
|
|
9
|
+
|
|
10
|
+
contributorType Can be "primary", "secondary", "project-team", or "all"
|
|
11
|
+
|
|
12
|
+
listType Can be "string", "list", "list-plus". "string" creates a
|
|
13
|
+
list of names with proper "and" or "," connectors. "list"
|
|
14
|
+
creates and unordered list of names, and "list-plus" adds
|
|
15
|
+
titles and affiliations when available.
|
|
16
|
+
|
|
17
|
+
Site Usually just $.Site. Used to pass in context in order to
|
|
18
|
+
grab contributor info from .Site.Data.publication by ID.
|
|
19
|
+
|
|
20
|
+
EXAMPLE PARTIAL USE:
|
|
21
|
+
partial "contributor-list.html" (dict "range" .Params.contributor "contributorType" "primary" "listType" "string" "Site" $.Site)
|
|
22
|
+
|
|
23
|
+
*/}}
|
|
24
|
+
|
|
25
|
+
{{ $contributors := "" }}
|
|
26
|
+
|
|
27
|
+
{{ if eq .contributorType "all" }}
|
|
28
|
+
{{ $contributors = .range }}
|
|
29
|
+
{{ else }}
|
|
30
|
+
{{ $contributors = where .range "type" .contributorType }}
|
|
31
|
+
{{ end }}
|
|
32
|
+
|
|
33
|
+
{{- if ne $contributors nil }}
|
|
34
|
+
|
|
35
|
+
{{- if eq .listType "string" }}
|
|
36
|
+
|
|
37
|
+
{{- $len := len $contributors -}}
|
|
38
|
+
{{- range $index, $element := $contributors -}}
|
|
39
|
+
{{- if eq $len 1 -}}
|
|
40
|
+
<span class="quire-contributor">{{ template "name-check" (dict "Site" $.Site "contributor" .) }}</span>
|
|
41
|
+
{{- else if eq (add $index 1) $len -}}
|
|
42
|
+
<span class="quire-contributor"> and {{ template "name-check" (dict "Site" $.Site "contributor" .) }}</span>
|
|
43
|
+
{{- else -}}
|
|
44
|
+
{{- if eq $len 2 -}}
|
|
45
|
+
<span class="quire-contributor">{{ template "name-check" (dict "Site" $.Site "contributor" .) }} </span>
|
|
46
|
+
{{- else -}}
|
|
47
|
+
<span class="quire-contributor">{{ template "name-check" (dict "Site" $.Site "contributor" .) }}, </span>
|
|
48
|
+
{{- end -}}
|
|
49
|
+
{{- end -}}
|
|
50
|
+
{{- end }}
|
|
51
|
+
|
|
52
|
+
{{- else if eq .listType "list" }}
|
|
53
|
+
|
|
54
|
+
<ul>
|
|
55
|
+
{{- range $contributors -}}
|
|
56
|
+
<li class="quire-contributor">{{ template "name-check" (dict "Site" $.Site "contributor" .) }}</li>
|
|
57
|
+
{{- end }}
|
|
58
|
+
</ul>
|
|
59
|
+
|
|
60
|
+
{{- else if eq .listType "list-plus" }}
|
|
61
|
+
|
|
62
|
+
<ul>
|
|
63
|
+
{{- range $contributors -}}
|
|
64
|
+
<li class="quire-contributor">
|
|
65
|
+
{{- template "name-check" (dict "Site" $.Site "contributor" .) -}}
|
|
66
|
+
{{- if or .title .affiliation -}}
|
|
67
|
+
{{- template "title" . -}}
|
|
68
|
+
{{- else if .id }}
|
|
69
|
+
{{- range where $.Site.Data.publication.contributor "id" .id -}}
|
|
70
|
+
{{- template "title" . -}}
|
|
71
|
+
{{- end -}}
|
|
72
|
+
{{- end -}}
|
|
73
|
+
</li>
|
|
74
|
+
{{- end }}
|
|
75
|
+
</ul>
|
|
76
|
+
|
|
77
|
+
{{- end }}
|
|
78
|
+
|
|
79
|
+
{{- end }}
|
|
80
|
+
|
|
81
|
+
{{- define "name-check" -}}
|
|
82
|
+
{{- if or .contributor.full_name (and .contributor.first_name .contributor.last_name) -}}
|
|
83
|
+
{{- template "name" .contributor -}}
|
|
84
|
+
{{- else if .contributor.id -}}
|
|
85
|
+
{{- range where $.Site.Data.publication.contributor "id" .contributor.id }}{{ template "name" . }}{{ end -}}
|
|
86
|
+
{{- end -}}
|
|
87
|
+
{{- end -}}
|
|
88
|
+
|
|
89
|
+
{{- define "name" -}}
|
|
90
|
+
{{- if .full_name -}}
|
|
91
|
+
{{ .full_name }}
|
|
92
|
+
{{- else -}}
|
|
93
|
+
{{ .first_name }} {{ .last_name }}
|
|
94
|
+
{{- end -}}
|
|
95
|
+
{{- end -}}
|
|
96
|
+
|
|
97
|
+
{{- define "title" -}}
|
|
98
|
+
{{- if or .title .affiliation}}, {{ end -}}
|
|
99
|
+
{{- with .title }}<span class="quire-contributor__title">{{ . }}</span>{{ end -}}
|
|
100
|
+
{{- if and .title .affiliation }}, {{ end -}}
|
|
101
|
+
{{- with .affiliation }}<span class="quire-contributor__affiliation">{{ . }}</span>{{ end -}}
|
|
102
|
+
{{- end -}}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
{{ if isset $.Site.Params "imagedir" }}
|
|
2
|
+
{{ $.Scratch.Set "imageDir" $.Site.Params.imageDir }}
|
|
3
|
+
{{ else }}
|
|
4
|
+
{{ $.Scratch.Set "imageDir" "" }}
|
|
5
|
+
{{ end }}
|
|
6
|
+
|
|
7
|
+
<div class="quire-copyright">
|
|
8
|
+
|
|
9
|
+
{{/* If copyright info is defined, show information about it here */}}
|
|
10
|
+
{{- $imgDir := $.Scratch.Get "imageDir" -}}
|
|
11
|
+
{{ range .Site.Data.publication.publisher }}
|
|
12
|
+
{{- if .logo -}}
|
|
13
|
+
<img src="{{ $imgDir | relURL }}/{{ .logo }}" class="quire-copyright__icon__logo" alt="logo" />
|
|
14
|
+
{{- end -}}
|
|
15
|
+
{{ end }}
|
|
16
|
+
|
|
17
|
+
{{- if .Site.Data.publication.copyright -}}
|
|
18
|
+
<p>{{ .Site.Data.publication.copyright | markdownify }}</p>
|
|
19
|
+
{{- end -}}
|
|
20
|
+
|
|
21
|
+
{{/* If a license is defined, show information about it here */}}
|
|
22
|
+
{{- if .Site.Data.publication.license.name -}}
|
|
23
|
+
|
|
24
|
+
{{/* License icons (ex. CC icons) if any */}}
|
|
25
|
+
{{- if eq .Site.Params.licenseIcons true -}}
|
|
26
|
+
{{- $imgDir := $.Scratch.Get "imageDir" -}}
|
|
27
|
+
{{- $license := .Site.Data.publication.license.abbreviation -}}
|
|
28
|
+
|
|
29
|
+
{{- with .Site.Data.publication.license.url }}<a rel="license" class="quire-copyright__icon__link" href="{{ . | relURL }}" target="_blank">{{ end -}}
|
|
30
|
+
|
|
31
|
+
{{- if .Site.Data.publication.license -}}
|
|
32
|
+
<svg class="quire-copyright__icon">
|
|
33
|
+
{{ if in $license "CC" }}
|
|
34
|
+
<switch>
|
|
35
|
+
<use xlink:href="#cc"></use>
|
|
36
|
+
</switch>
|
|
37
|
+
{{ if in $license "BY" }}
|
|
38
|
+
<switch>
|
|
39
|
+
<use xlink:href="#cc-by"></use>
|
|
40
|
+
<foreignObject width="135" height="30">
|
|
41
|
+
<img src="{{ $imgDir | relURL }}/icons/cc-by.png" alt="CC-BY" />
|
|
42
|
+
</foreignObject>
|
|
43
|
+
</switch>
|
|
44
|
+
{{ if in $license "BY-NC" }}
|
|
45
|
+
<switch>
|
|
46
|
+
<use xlink:href="#cc-by-nc"></use>
|
|
47
|
+
<foreignObject width="135" height="30">
|
|
48
|
+
<img src="{{ $imgDir | relURL }}/icons/cc-by-nc.png" alt="CC-BY-NC" />
|
|
49
|
+
</foreignObject>
|
|
50
|
+
</switch>
|
|
51
|
+
{{ if in $license "BY-NC-SA"}}
|
|
52
|
+
<switch>
|
|
53
|
+
<use xlink:href="#cc-by-nc-sa"></use>
|
|
54
|
+
<foreignObject width="135" height="30">
|
|
55
|
+
<img src="{{ $imgDir | relURL }}/icons/cc-by-nc-sa.png" alt="CC-BY-NC-SA" />
|
|
56
|
+
</foreignObject>
|
|
57
|
+
</switch>
|
|
58
|
+
{{ else if in $license "BY-NC-ND"}}
|
|
59
|
+
<switch>
|
|
60
|
+
<use xlink:href="#cc-by-nc-nd"></use>
|
|
61
|
+
<foreignObject width="135" height="30">
|
|
62
|
+
<img src="{{ $imgDir | relURL }}/icons/cc-by-nc-nd.png" alt="CC-BY-NC-ND" />
|
|
63
|
+
</foreignObject>
|
|
64
|
+
</switch>
|
|
65
|
+
{{ end }}
|
|
66
|
+
{{ else if in $license "BY-SA" }}
|
|
67
|
+
<switch>
|
|
68
|
+
<use xlink:href="#cc-by-sa"></use>
|
|
69
|
+
<foreignObject width="135" height="30">
|
|
70
|
+
<img src="{{ $imgDir | relURL }}/icons/cc-by-sa.png" alt="CC-BY-SA" />
|
|
71
|
+
</foreignObject>
|
|
72
|
+
</switch>
|
|
73
|
+
{{ else if in $license "BY-ND" }}
|
|
74
|
+
<switch>
|
|
75
|
+
<use xlink:href="#cc-by-nd"></use>
|
|
76
|
+
<foreignObject width="135" height="30">
|
|
77
|
+
<img src="{{ $imgDir | relURL }}/icons/cc-by-nd.png" alt="CC-BY-ND" />
|
|
78
|
+
</foreignObject>
|
|
79
|
+
</switch>
|
|
80
|
+
{{ end }}
|
|
81
|
+
{{ else if in $license "0" }}
|
|
82
|
+
<switch>
|
|
83
|
+
<use xlink:href="#cc-zero"></use>
|
|
84
|
+
<foreignObject width="135" height="30">
|
|
85
|
+
<img src="{{ $imgDir | relURL }}/icons/cc-zero.png" alt="CC-ZERO" />
|
|
86
|
+
</foreignObject>
|
|
87
|
+
</switch>
|
|
88
|
+
{{ end }}
|
|
89
|
+
{{ end }}
|
|
90
|
+
</svg>
|
|
91
|
+
|
|
92
|
+
{{ end }}
|
|
93
|
+
{{- with .Site.Data.publication.license.url }}</a>{{ end -}}
|
|
94
|
+
|
|
95
|
+
{{- end -}}
|
|
96
|
+
|
|
97
|
+
{{/* License details */}}
|
|
98
|
+
|
|
99
|
+
{{ if .Site.Data.publication.license.online_text }}
|
|
100
|
+
<div class="is-screen-only">
|
|
101
|
+
{{ .Site.Data.publication.license.online_text | markdownify }}
|
|
102
|
+
</div>
|
|
103
|
+
{{ else }}
|
|
104
|
+
<div class="is-screen-only">
|
|
105
|
+
{{ template "copyright-generator" . }}
|
|
106
|
+
</div>
|
|
107
|
+
{{ end }}
|
|
108
|
+
|
|
109
|
+
{{ if .Site.Data.publication.license.pdf_ebook_text }}
|
|
110
|
+
<div class="is-print-only">
|
|
111
|
+
{{ .Site.Data.publication.license.pdf_ebook_text | markdownify }}
|
|
112
|
+
</div>
|
|
113
|
+
{{ else }}
|
|
114
|
+
<div class="is-print-only">
|
|
115
|
+
{{ template "copyright-generator" . }}
|
|
116
|
+
</div>
|
|
117
|
+
{{ end }}
|
|
118
|
+
|
|
119
|
+
{{- end -}}
|
|
120
|
+
|
|
121
|
+
</div>
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
{{ define "copyright-generator" }}
|
|
125
|
+
|
|
126
|
+
{{- if eq .Site.Data.publication.license.scope "some-exceptions" -}}
|
|
127
|
+
Except where otherwise noted, this work is licensed under a
|
|
128
|
+
{{ with .Site.Data.publication.license.url }}<a rel="license" href="{{ . | relURL }}" target="_blank">{{ end }}
|
|
129
|
+
{{ .Site.Data.publication.license.name }}
|
|
130
|
+
{{ with .Site.Data.publication.license.url }}</a>{{ end }}.
|
|
131
|
+
|
|
132
|
+
{{- else if eq .Site.Data.publication.license.scope "text-only" -}}
|
|
133
|
+
The text of this work is licensed under a
|
|
134
|
+
{{ with .Site.Data.publication.license.url }}<a rel="license" href="{{ . | relURL }}" target="_blank">{{ end }}
|
|
135
|
+
{{ .Site.Data.publication.license.name }}
|
|
136
|
+
{{ with .Site.Data.publication.license.url }}</a>{{ end }}
|
|
137
|
+
. Unless otherwise noted, all illustrations are excluded from the
|
|
138
|
+
{{ if .Site.Data.publication.license.abbreviation }}
|
|
139
|
+
{{ .Site.Data.publication.license.abbreviation }}
|
|
140
|
+
{{ else }}
|
|
141
|
+
{{ .Site.Data.publication.license.name }}
|
|
142
|
+
{{ end }} license.
|
|
143
|
+
{{- else -}}
|
|
144
|
+
This work is licensed under a
|
|
145
|
+
{{ with .Site.Data.publication.license.url }}<a rel="license" href="{{ . | relURL }}" target="_blank">{{ end }}
|
|
146
|
+
{{ .Site.Data.publication.license.name }}
|
|
147
|
+
{{ with .Site.Data.publication.license.url }}</a>{{ end }}
|
|
148
|
+
{{- end -}}
|
|
149
|
+
<span class="is-print-only">
|
|
150
|
+
To view a copy of this license{{ with .Site.Data.publication.license.url }},
|
|
151
|
+
visit {{ . }} or{{ end }}
|
|
152
|
+
send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042.
|
|
153
|
+
</span>
|
|
154
|
+
|
|
155
|
+
{{ end }}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<link rel="schema.dcterms" href="https://purl.org/dc/terms/">
|
|
2
|
+
<meta name="dcterms.title" content="{{ partial "site-title.html" . }}">
|
|
3
|
+
{{ if .Site.Data.publication.contributor -}}
|
|
4
|
+
{{ range where .Site.Data.publication.contributor "type" "primary" -}}
|
|
5
|
+
<meta name="dcterms.creator" content="{{ if .full_name }}{{ .full_name }}{{ else }}{{ .first_name }} {{ .last_name }}{{ end }}">
|
|
6
|
+
{{ end -}}
|
|
7
|
+
{{ range where .Site.Data.publication.contributor "type" "secondary" -}}
|
|
8
|
+
<meta name="dcterms.contributor" content="{{ if .full_name }}{{ .full_name }}{{ else }}{{ .first_name }} {{ .last_name }}{{ end }}">
|
|
9
|
+
{{ end -}}
|
|
10
|
+
{{ end -}}
|
|
11
|
+
<meta name="dcterms.date" content="{{ .Site.Data.publication.pub_date }}">
|
|
12
|
+
<meta name="dcterms.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 }}">
|
|
13
|
+
<meta name="dcterms.identifier" content="{{ replace .Site.Data.publication.identifier.isbn "-" "" }}">
|
|
14
|
+
<meta name="dcterms.language" content="{{ .Site.Data.publication.language }}">
|
|
15
|
+
{{- range .Site.Data.publication.publisher -}}
|
|
16
|
+
<meta name="dcterms.publisher" content="{{ .name }}{{ with .location }}, {{ . }} {{ end }}">
|
|
17
|
+
{{- end -}}
|
|
18
|
+
<meta name="dcterms.rights" content="{{ .Site.Data.publication.copyright }}">
|
|
19
|
+
{{ range .Site.Data.publication.subject -}}
|
|
20
|
+
<meta name="dcterms.subject" content="{{ .name }}">
|
|
21
|
+
{{ end -}}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{{/*
|
|
2
|
+
This partial creates custom error messages for shortcode users. To use, pass
|
|
3
|
+
in the name of the shortcode, a message, and an example. See `q-cite` for
|
|
4
|
+
a sample implementation.
|
|
5
|
+
*/}}
|
|
6
|
+
|
|
7
|
+
{{ $shortcode := .shortcode }}
|
|
8
|
+
{{ $message := .message | markdownify }}
|
|
9
|
+
{{ $example := safeHTML .example }}
|
|
10
|
+
|
|
11
|
+
<div class="quire-error message is-danger">
|
|
12
|
+
<div class="message-header">
|
|
13
|
+
<strong>SHORTCODE ERROR: {{ with $shortcode }}{{ . }}{{ end }}</strong>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="message-body">
|
|
16
|
+
{{ with $message }}<p>{{ . }}</p>{{ end }}
|
|
17
|
+
{{ with $example }}<pre>{{ . }}</pre>{{ end }}
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<figcaption class="quire-figure__caption caption">{{ if eq .Site.Params.epub true }}<span class="quire-figure__label">{{ .label }}</span> {{ end }}{{ with .caption }}{{ markdownify . }}{{ end }}{{ with .credit }} <span class="quire-figure__credit">{{ markdownify . }}</span>{{ end }}</figcaption>
|