@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,20 @@
|
|
|
1
|
+
{{/*
|
|
2
|
+
A partial for including an inline SVG icon with a PNG fallback.
|
|
3
|
+
|
|
4
|
+
Should be passed with a "type" that corresponds to an id in the icons.html partial, and an optional "description"
|
|
5
|
+
|
|
6
|
+
partial "icon.html" (dict "type" "link" "description" "Open in new window")
|
|
7
|
+
|
|
8
|
+
*/}}
|
|
9
|
+
{{ $imgDir := "img" }}
|
|
10
|
+
<svg class="remove-from-epub">
|
|
11
|
+
<switch>
|
|
12
|
+
<use xlink:href="#{{ .type }}-icon"></use>
|
|
13
|
+
<foreignObject width="24" height="24">
|
|
14
|
+
<img src="{{ relURL $imgDir }}/icons/{{ .type }}.png" alt="{{ .description }}" />
|
|
15
|
+
</foreignObject>
|
|
16
|
+
</switch>
|
|
17
|
+
</svg>
|
|
18
|
+
{{ with .description }}
|
|
19
|
+
<span class="visually-hidden remove-from-epub">{{ . }}</span>
|
|
20
|
+
{{ end }}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{{/*
|
|
2
|
+
This file contains inline Creative Commons icon SVG elements which are used in the `copyright.html` file. The individual elements are assembled according to the specific license used: "CC 0", "CC BY", "CC BY-SA", "CC BY-ND", "CC BY-NC", "CC BY-NC-SA", or "CC BY-NC-ND".
|
|
3
|
+
*/}}
|
|
4
|
+
|
|
5
|
+
<svg style="display:none" class="remove-from-epub">
|
|
6
|
+
<symbol id="cc" viewBox="0 0 270 60" preserveAspectRatio="xMinYMax meet">
|
|
7
|
+
<path d="M29.9,0c8.4,0,15.5,2.9,21.4,8.8c2.8,2.8,5,6,6.4,9.7C59.3,22.1,60,25.9,60,30c0,4.1-0.7,8-2.2,11.5
|
|
8
|
+
c-1.4,3.6-3.6,6.8-6.4,9.5c-2.9,2.9-6.2,5.1-10,6.6c-3.7,1.5-7.6,2.3-11.5,2.3s-7.8-0.8-11.4-2.3c-3.6-1.5-6.9-3.7-9.8-6.6
|
|
9
|
+
c-2.9-2.9-5.1-6.1-6.6-9.7S0,34,0,30c0-4,0.8-7.8,2.3-11.4S6,11.6,8.9,8.7C14.6,2.9,21.6,0,29.9,0z M30.1,5.4
|
|
10
|
+
c-6.9,0-12.6,2.4-17.3,7.2c-2.4,2.4-4.2,5.1-5.4,8.1c-1.3,3-1.9,6.1-1.9,9.3c0,3.2,0.6,6.3,1.9,9.3c1.3,3,3.1,5.6,5.4,8
|
|
11
|
+
c2.4,2.3,5,4.1,8,5.4c3,1.2,6.1,1.8,9.3,1.8c3.2,0,6.3-0.6,9.3-1.9c3-1.3,5.7-3.1,8.2-5.4c4.7-4.6,7-10.3,7-17.2
|
|
12
|
+
c0-3.3-0.6-6.5-1.8-9.4c-1.2-3-3-5.6-5.3-7.9C42.6,7.8,36.8,5.4,30.1,5.4z M29.7,25l-4,2.1c-0.4-0.9-1-1.5-1.6-1.9
|
|
13
|
+
c-0.6-0.4-1.2-0.5-1.7-0.5c-2.7,0-4,1.8-4,5.3c0,1.6,0.3,2.9,1,3.9c0.7,1,1.7,1.4,3,1.4c1.8,0,3-0.9,3.7-2.6l3.7,1.9
|
|
14
|
+
c-0.8,1.5-1.9,2.6-3.3,3.5c-1.4,0.8-2.9,1.3-4.6,1.3c-2.7,0-4.8-0.8-6.5-2.5c-1.6-1.6-2.5-3.9-2.5-6.9c0-2.9,0.8-5.1,2.5-6.8
|
|
15
|
+
c1.7-1.7,3.8-2.5,6.3-2.5C25.4,20.7,28.1,22.1,29.7,25z M47,25l-4,2.1c-0.4-0.9-1-1.5-1.6-1.9c-0.6-0.4-1.2-0.5-1.8-0.5
|
|
16
|
+
c-2.7,0-4,1.8-4,5.3c0,1.6,0.3,2.9,1,3.9s1.7,1.4,3,1.4c1.7,0,3-0.9,3.7-2.6l3.8,1.9c-0.8,1.5-1.9,2.6-3.3,3.5
|
|
17
|
+
c-1.4,0.8-2.9,1.3-4.6,1.3c-2.7,0-4.9-0.8-6.5-2.5c-1.6-1.6-2.4-3.9-2.4-6.9c0-2.9,0.8-5.1,2.5-6.8c1.7-1.7,3.8-2.5,6.3-2.5
|
|
18
|
+
C42.8,20.7,45.4,22.1,47,25z"/>
|
|
19
|
+
</symbol>
|
|
20
|
+
<symbol id="cc-zero" viewBox="0 0 270 60" preserveAspectRatio="xMinYMax meet">
|
|
21
|
+
<path d="M100,12.7c-9.9,0-12.4,9.3-12.4,17.3c0,7.9,2.5,17.3,12.4,17.3c9.9,0,12.4-9.3,12.4-17.3
|
|
22
|
+
C112.4,22.1,109.9,12.7,100,12.7z M100,19.2c0.4,0,0.8,0.1,1.1,0.1c0.7,0.6,1.1,1.5,0.4,2.6l-6.6,12.1c-0.2-1.5-0.2-3-0.2-4.2
|
|
23
|
+
C94.7,26.5,94.9,19.2,100,19.2z M104.9,24.8c0.3,1.9,0.4,3.8,0.4,5.2c0,3.5-0.2,10.8-5.3,10.8c-0.4,0-0.8,0-1.1-0.1
|
|
24
|
+
c-0.1,0-0.1,0-0.2-0.1c-0.1,0-0.2-0.1-0.3-0.1c-1.1-0.5-1.8-1.4-0.8-2.9L104.9,24.8z"/>
|
|
25
|
+
<path d="M99.9,0c-8.3,0-15.3,2.9-21.1,8.7c-2.9,2.9-5.1,6.2-6.6,9.9C70.7,22.2,70,26,70,30
|
|
26
|
+
c0,4,0.7,7.8,2.2,11.4c1.5,3.6,3.7,6.9,6.5,9.7c2.9,2.9,6.1,5.1,9.7,6.6C92.2,59.3,96,60,99.9,60c4,0,7.8-0.8,11.5-2.3
|
|
27
|
+
c3.7-1.5,7-3.7,10-6.6c2.8-2.7,5-5.9,6.4-9.5c1.5-3.6,2.2-7.5,2.2-11.6c0-4.1-0.7-7.9-2.2-11.5c-1.5-3.6-3.6-6.9-6.4-9.7
|
|
28
|
+
C115.5,2.9,108.3,0,99.9,0z M100.1,5.4c6.8,0,12.6,2.4,17.4,7.2c2.3,2.3,4.1,5,5.3,7.9c1.2,3,1.8,6.1,1.8,9.4
|
|
29
|
+
c0,6.9-2.4,12.6-7,17.2c-2.4,2.4-5.2,4.2-8.2,5.4c-3,1.3-6.1,1.9-9.3,1.9c-3.3,0-6.4-0.6-9.3-1.8c-3-1.3-5.6-3-8-5.4
|
|
30
|
+
c-2.4-2.4-4.2-5-5.5-8c-1.2-3-1.9-6.1-1.9-9.3c0-3.3,0.6-6.4,1.9-9.3c1.3-3,3.1-5.7,5.5-8.1C87.4,7.8,93.2,5.4,100.1,5.4z"/>
|
|
31
|
+
</symbol>
|
|
32
|
+
<symbol id="cc-by" viewBox="0 0 270 60" preserveAspectRatio="xMinYMax meet">
|
|
33
|
+
<path d="M99.9,0c8.4,0,15.5,2.9,21.3,8.7c5.8,5.8,8.7,12.9,8.7,21.3c0,8.4-2.9,15.4-8.6,21.1
|
|
34
|
+
c-6.1,6-13.2,8.9-21.5,8.9c-8.1,0-15.1-2.9-21.1-8.8C72.9,45.3,70,38.2,70,30c0-8.2,2.9-15.3,8.8-21.3C84.6,2.9,91.7,0,99.9,0z
|
|
35
|
+
M100.1,5.4c-6.8,0-12.6,2.4-17.3,7.2c-4.9,5-7.3,10.8-7.3,17.4c0,6.6,2.4,12.4,7.3,17.2c4.9,4.9,10.6,7.3,17.4,7.3
|
|
36
|
+
c6.7,0,12.5-2.4,17.5-7.3c4.7-4.5,7.1-10.3,7.1-17.2c0-6.8-2.4-12.6-7.2-17.4C112.6,7.8,106.8,5.4,100.1,5.4z M108.1,22.6v12.3
|
|
37
|
+
h-3.4v14.6h-9.3V34.8h-3.4V22.6c0-0.5,0.2-1,0.6-1.4c0.4-0.4,0.8-0.6,1.4-0.6h12.3c0.5,0,0.9,0.2,1.3,0.6
|
|
38
|
+
C107.9,21.6,108.1,22,108.1,22.6z M95.8,14.8c0-2.8,1.4-4.2,4.2-4.2s4.2,1.4,4.2,4.2c0,2.8-1.4,4.2-4.2,4.2S95.8,17.6,95.8,14.8z"
|
|
39
|
+
/>
|
|
40
|
+
</symbol>
|
|
41
|
+
<symbol id="cc-by-nc" viewBox="0 0 270 60" preserveAspectRatio="xMinYMax meet">
|
|
42
|
+
<path d="M169.9,0c8.4,0,15.5,2.9,21.3,8.7c5.8,5.8,8.7,12.9,8.7,21.3c0,8.4-2.9,15.4-8.6,21.1
|
|
43
|
+
c-6.1,6-13.2,8.9-21.5,8.9c-8.1,0-15.2-3-21.1-8.9c-5.9-5.9-8.8-12.9-8.8-21.1c0-8.2,2.9-15.3,8.8-21.3
|
|
44
|
+
C154.6,2.9,161.7,0,169.9,0z M146.8,21.9c-0.9,2.5-1.3,5.2-1.3,8.1c0,6.6,2.4,12.4,7.3,17.3c4.9,4.8,10.7,7.2,17.4,7.2
|
|
45
|
+
c6.8,0,12.6-2.4,17.5-7.3c1.8-1.7,3.1-3.4,4.1-5.3l-11.3-5c-0.4,1.9-1.3,3.4-2.9,4.6c-1.5,1.2-3.3,1.9-5.4,2.1v4.6h-3.5v-4.6
|
|
46
|
+
c-3.3,0-6.4-1.2-9.1-3.6l4.1-4.2c2,1.8,4.2,2.7,6.7,2.7c1,0,1.9-0.2,2.7-0.7c0.7-0.5,1.1-1.2,1.1-2.3c0-0.8-0.3-1.4-0.8-1.8
|
|
47
|
+
l-2.9-1.2l-3.5-1.6l-4.8-2.1L146.8,21.9z M170.1,5.4c-6.8,0-12.6,2.4-17.3,7.2c-1.2,1.2-2.3,2.5-3.3,4l11.5,5.1
|
|
48
|
+
c0.5-1.6,1.4-2.8,2.8-3.8c1.4-0.9,3-1.5,4.9-1.6v-4.6h3.5v4.6c2.8,0.1,5.2,1.1,7.5,2.8l-3.9,4c-1.7-1.2-3.4-1.8-5.1-1.8
|
|
49
|
+
c-0.9,0-1.8,0.2-2.5,0.5c-0.7,0.4-1.1,1-1.1,1.8c0,0.3,0.1,0.5,0.3,0.8l3.8,1.7l2.6,1.2l4.8,2.1l15.4,6.9
|
|
50
|
+
c0.5-2.1,0.8-4.2,0.8-6.4c0-6.9-2.4-12.7-7.2-17.4C182.7,7.8,176.9,5.4,170.1,5.4z"/>
|
|
51
|
+
</symbol>
|
|
52
|
+
<symbol id="cc-by-sa" viewBox="0 0 270 60" preserveAspectRatio="xMinYMax meet">
|
|
53
|
+
<path d="M169.9,0c8.4,0,15.5,2.9,21.3,8.7c5.8,5.8,8.7,12.9,8.7,21.3c0,8.4-2.9,15.4-8.6,21.1
|
|
54
|
+
c-6,5.9-13.2,8.9-21.5,8.9c-8.1,0-15.1-2.9-21.1-8.8c-5.9-5.9-8.8-12.9-8.8-21.2c0-8.2,2.9-15.3,8.8-21.3
|
|
55
|
+
C154.7,2.9,161.7,0,169.9,0z M170.1,5.4c-6.8,0-12.6,2.4-17.3,7.2c-4.9,5-7.3,10.8-7.3,17.4c0,6.7,2.4,12.4,7.3,17.2
|
|
56
|
+
c4.9,4.9,10.6,7.3,17.4,7.3c6.7,0,12.5-2.4,17.5-7.3c4.7-4.6,7.1-10.3,7.1-17.2c0-6.9-2.4-12.6-7.2-17.4
|
|
57
|
+
C182.7,7.8,176.9,5.4,170.1,5.4z M156.7,25.8c0.6-3.7,2.1-6.5,4.4-8.5c2.4-2,5.3-3,8.7-3c4.7,0,8.5,1.5,11.2,4.6
|
|
58
|
+
c2.8,3,4.2,6.9,4.2,11.7c0,4.6-1.4,8.4-4.3,11.5c-2.9,3.1-6.6,4.6-11.3,4.6c-3.4,0-6.3-1-8.8-3.1c-2.5-2-3.9-4.9-4.4-8.7h7.6
|
|
59
|
+
c0.2,3.6,2.4,5.5,6.6,5.5c2.1,0,3.8-0.9,5.1-2.7c1.3-1.8,1.9-4.3,1.9-7.3c0-3.2-0.6-5.6-1.8-7.3c-1.2-1.7-2.9-2.5-5.1-2.5
|
|
60
|
+
c-4,0-6.3,1.8-6.8,5.3h2.2l-5.9,5.9l-5.9-5.9L156.7,25.8L156.7,25.8z"/>
|
|
61
|
+
</symbol>
|
|
62
|
+
<symbol id="cc-by-nd" viewBox="0 0 270 60" preserveAspectRatio="xMinYMax meet">
|
|
63
|
+
<path d="M169.9,0c8.4,0,15.5,2.9,21.3,8.7c5.8,5.8,8.7,12.9,8.7,21.3s-2.9,15.4-8.6,21.1c-6,5.9-13.2,8.9-21.5,8.9
|
|
64
|
+
c-8.1,0-15.1-2.9-21.1-8.8c-5.9-5.9-8.8-12.9-8.8-21.2c0-8.2,2.9-15.3,8.8-21.3C154.7,2.9,161.7,0,169.9,0z M170.1,5.4
|
|
65
|
+
c-6.8,0-12.6,2.4-17.3,7.2c-4.9,5-7.3,10.8-7.3,17.4c0,6.7,2.4,12.4,7.3,17.3c4.9,4.9,10.6,7.3,17.4,7.3c6.7,0,12.5-2.4,17.5-7.3
|
|
66
|
+
c4.7-4.6,7.1-10.3,7.1-17.2c0-6.9-2.4-12.6-7.2-17.4C182.7,7.8,176.9,5.4,170.1,5.4z M181.4,22.9v5.1h-21.8v-5.1H181.4z
|
|
67
|
+
M181.4,32.6v5.1h-21.8v-5.1H181.4z"/>
|
|
68
|
+
</symbol>
|
|
69
|
+
<symbol id="cc-by-nc-sa" viewBox="0 0 270 60" preserveAspectRatio="xMinYMax meet">
|
|
70
|
+
<path d="M239.9,0c8.4,0,15.5,2.9,21.3,8.7c5.8,5.8,8.7,12.9,8.7,21.3c0,8.4-2.9,15.4-8.6,21.1
|
|
71
|
+
c-6,5.9-13.2,8.9-21.5,8.9c-8.1,0-15.1-2.9-21.1-8.8c-5.9-5.9-8.8-12.9-8.8-21.2c0-8.2,2.9-15.3,8.8-21.3
|
|
72
|
+
C224.7,2.9,231.7,0,239.9,0z M240.1,5.4c-6.8,0-12.6,2.4-17.3,7.2c-4.9,5-7.3,10.8-7.3,17.4c0,6.7,2.4,12.4,7.3,17.2
|
|
73
|
+
c4.9,4.9,10.6,7.3,17.4,7.3c6.7,0,12.5-2.4,17.5-7.3c4.7-4.6,7.1-10.3,7.1-17.2c0-6.9-2.4-12.6-7.2-17.4
|
|
74
|
+
C252.7,7.8,246.9,5.4,240.1,5.4z M226.7,25.8c0.6-3.7,2.1-6.5,4.4-8.5c2.4-2,5.3-3,8.7-3c4.7,0,8.5,1.5,11.2,4.6
|
|
75
|
+
c2.8,3,4.2,6.9,4.2,11.7c0,4.6-1.4,8.4-4.3,11.5c-2.9,3.1-6.6,4.6-11.3,4.6c-3.4,0-6.3-1-8.8-3.1c-2.5-2-3.9-4.9-4.4-8.7h7.6
|
|
76
|
+
c0.2,3.6,2.4,5.5,6.6,5.5c2.1,0,3.8-0.9,5.1-2.7c1.3-1.8,1.9-4.3,1.9-7.3c0-3.2-0.6-5.6-1.8-7.3c-1.2-1.7-2.9-2.5-5.1-2.5
|
|
77
|
+
c-4,0-6.3,1.8-6.8,5.3h2.2l-5.9,5.9l-5.9-5.9L226.7,25.8L226.7,25.8z"/>
|
|
78
|
+
</symbol>
|
|
79
|
+
<symbol id="cc-by-nc-nd" viewBox="0 0 270 60" preserveAspectRatio="xMinYMax meet">
|
|
80
|
+
<path d="M239.9,0c8.4,0,15.5,2.9,21.3,8.7c5.8,5.8,8.7,12.9,8.7,21.3s-2.9,15.4-8.6,21.1c-6,5.9-13.2,8.9-21.5,8.9
|
|
81
|
+
c-8.1,0-15.1-2.9-21.1-8.8c-5.9-5.9-8.8-12.9-8.8-21.2c0-8.2,2.9-15.3,8.8-21.3C224.7,2.9,231.7,0,239.9,0z M240.1,5.4
|
|
82
|
+
c-6.8,0-12.6,2.4-17.3,7.2c-4.9,5-7.3,10.8-7.3,17.4c0,6.7,2.4,12.4,7.3,17.3c4.9,4.9,10.6,7.3,17.4,7.3c6.7,0,12.5-2.4,17.5-7.3
|
|
83
|
+
c4.7-4.6,7.1-10.3,7.1-17.2c0-6.9-2.4-12.6-7.2-17.4C252.7,7.8,246.9,5.4,240.1,5.4z M251.4,22.9v5.1h-21.8v-5.1H251.4z
|
|
84
|
+
M251.4,32.6v5.1h-21.8v-5.1H251.4z"/>
|
|
85
|
+
</symbol>
|
|
86
|
+
</svg>
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{{/*
|
|
2
|
+
This file contains inline SVG elements which can be referenced elsewhere in
|
|
3
|
+
the templates. This file can be included at the end of the <body> tag.
|
|
4
|
+
*/}}
|
|
5
|
+
|
|
6
|
+
<svg style="display:none">
|
|
7
|
+
<symbol id="left-arrow-icon" viewBox="0 0 18 32">
|
|
8
|
+
<path d="M23.1,11.1L21,9l-9,9l9,9l2.1-2.1L16.2,18L23.1,11.1z"/>
|
|
9
|
+
</symbol>
|
|
10
|
+
<symbol id="right-arrow-icon" viewBox="0 0 18 32">
|
|
11
|
+
<path d="M12.9,11.1L15,9l9,9l-9,9l-2.1-2.1l6.9-6.9L12.9,11.1z"/>
|
|
12
|
+
</symbol>
|
|
13
|
+
<symbol id="search-icon" viewBox="0 0 32 32">
|
|
14
|
+
<path d="M18.6,16.4h-1.2L17,16c1.5-1.7,2.3-3.9,2.3-6.3C19.3,4.3,15,0,9.7,0S0,4.3,0,9.7s4.3,9.7,9.7,9.7c2.4,0,4.6-0.9,6.3-2.3
|
|
15
|
+
l0.4,0.4v1.2l7.4,7.4l2.2-2.2L18.6,16.4z M9.7,16.4C6,16.4,3,13.4,3,9.7S6,3,9.7,3s6.7,3,6.7,6.7S13.4,16.4,9.7,16.4z"/>
|
|
16
|
+
</symbol>
|
|
17
|
+
<symbol id="nav-icon" viewBox="0 0 32 32">
|
|
18
|
+
<path d="M0,6.7h24.9V3.1H0V6.7z M0,13.8h24.9v-3.6H0V13.8z M0,20.9h24.9v-3.6H0V20.9z M28.4,20.9H32v-3.6h-3.6V20.9z M28.4,3.1v3.6
|
|
19
|
+
H32V3.1H28.4z M28.4,13.8H32v-3.6h-3.6V13.8z"/>
|
|
20
|
+
</symbol>
|
|
21
|
+
<symbol id="arrow-forward-icon" viewBox="0 0 32 32">
|
|
22
|
+
<path d="M16,5.3l-1.9,1.9l7.4,7.5H5.3v2.7h16.2l-7.4,7.5l1.9,1.9L26.7,16L16,5.3z"/>
|
|
23
|
+
</symbol>
|
|
24
|
+
<symbol id="home-icon" viewBox="0 0 32 32">
|
|
25
|
+
<path d="M11,18V6l-8.5,6L11,18z M11.5,12l8.5,6V6L11.5,12z"/>
|
|
26
|
+
</symbol>
|
|
27
|
+
<symbol id="start-icon" viewBox="0 0 32 32">
|
|
28
|
+
<path d="M8,5v14l11-7L8,5z"/>
|
|
29
|
+
</symbol>
|
|
30
|
+
<symbol id="down-arrow-icon" viewBox="0 0 32 32">
|
|
31
|
+
<path d="M16.6,8.6L12,13.2L7.4,8.6L6,10l6,6l6-6L16.6,8.6z"/>
|
|
32
|
+
</symbol>
|
|
33
|
+
<symbol id="link-icon" viewBox="0 0 20 20">
|
|
34
|
+
<path d="M3.3,16.7c-1.4-1.4-1.4-3.7,0-5.1l3.3-3.3L5,6.7L1.7,10c-2.3,2.3-2.3,6,0,8.3s6,2.3,8.3,0l3.3-3.3l-1.6-1.6l-3.3,3.3
|
|
35
|
+
C7,18.1,4.7,18.1,3.3,16.7z M7.5,14.1l6.6-6.6l-1.7-1.7l-6.6,6.6L7.5,14.1z M10,1.7L6.7,5l1.6,1.6l3.3-3.3c1.4-1.4,3.7-1.4,5.1,0
|
|
36
|
+
s1.4,3.7,0,5.1l-3.3,3.3l1.6,1.6l3.3-3.3c2.3-2.3,2.3-6,0-8.3S12.3-0.6,10,1.7z"/>
|
|
37
|
+
</symbol>
|
|
38
|
+
<symbol id="close-icon" viewBox="0 0 48 48">
|
|
39
|
+
<path d="M38 12.83L35.17 10 24 21.17 12.83 10 10 12.83 21.17 24 10 35.17 12.83 38 24 26.83 35.17 38 38 35.17 26.83 24z"/>
|
|
40
|
+
</symbol>
|
|
41
|
+
<symbol id="download-icon" viewBox="0 0 32 32">
|
|
42
|
+
<path d="M28.4,16v12.4H3.6V16H0v12.4c0,2,1.6,3.6,3.6,3.6h24.9c2,0,3.6-1.6,3.6-3.6V16H28.4z M17.8,17.2l4.6-4.6l2.5,2.5L16,24
|
|
43
|
+
l-8.9-8.9l2.5-2.5l4.6,4.6V0h3.6V17.2z"/>
|
|
44
|
+
</symbol>
|
|
45
|
+
<symbol id="plus-icon" viewBox="0 0 16 16">
|
|
46
|
+
<path
|
|
47
|
+
d="M26 0C11.664 0 0 11.663 0 26s11.664 26 26 26 26-11.663 26-26S40.336 0 26 0zm0 50C12.767 50 2 39.233 2 26S12.767 2 26 2s24 10.767 24 24-10.767 24-24 24z" />
|
|
48
|
+
<path
|
|
49
|
+
d="M38.5 25H27V14c0-.553-.448-1-1-1s-1 .447-1 1v11H13.5c-.552 0-1 .447-1 1s.448 1 1 1H25v12c0 .553.448 1 1 1s1-.447 1-1V27h11.5c.552 0 1-.447 1-1s-.448-1-1-1z" />
|
|
50
|
+
</symbol>
|
|
51
|
+
<symbol id="fullscreen-icon" viewBox="0 0 24 24">
|
|
52
|
+
<path d="M0 0h24v24H0z" fill="none"/><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/>
|
|
53
|
+
</symbol>
|
|
54
|
+
</svg>
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
<script type="application/ld+json">
|
|
2
|
+
{
|
|
3
|
+
"@context": "http://schema.org/",
|
|
4
|
+
{{ if eq .Type "essay" -}}
|
|
5
|
+
"@type": "Article",
|
|
6
|
+
"headline": "{{ partial "page-title.html" . }}",
|
|
7
|
+
"url": "{{ .Permalink }}",
|
|
8
|
+
{{ if .Page.Params.cover -}}
|
|
9
|
+
"image": "{{ .Site.BaseURL }}{{ .Site.Params.imageDir }}{{ .Site.Params.figureSubDir }}{{ .Page.Params.cover }}",
|
|
10
|
+
{{ end -}}
|
|
11
|
+
{{ with .Page.Params.contributor -}}
|
|
12
|
+
"author": [
|
|
13
|
+
{{ $len := len . -}}
|
|
14
|
+
{{ range $index, $element := . -}}
|
|
15
|
+
{{ if .id -}}
|
|
16
|
+
{{ range where $.Site.Data.publication.contributor "id" .id -}}
|
|
17
|
+
{
|
|
18
|
+
"type": "Person",
|
|
19
|
+
"name": "{{ if .full_name }}{{ .full_name }}{{ else }}{{ .first_name }} {{ .last_name }}{{ end }}"
|
|
20
|
+
}{{ if ne $index (sub $len 1) }},{{ else }}{{ end }}
|
|
21
|
+
{{ end -}}
|
|
22
|
+
{{ else -}}
|
|
23
|
+
{
|
|
24
|
+
"type": "Person",
|
|
25
|
+
"name": "{{ if .full_name }}{{ .full_name }}{{ else }}{{ .first_name }} {{ .last_name }}{{ end }}"
|
|
26
|
+
}{{ if ne $index (sub $len 1) }},{{ else }}{{ end }}
|
|
27
|
+
{{ end -}}
|
|
28
|
+
{{ end -}}
|
|
29
|
+
],
|
|
30
|
+
{{ end -}}
|
|
31
|
+
"description": "{{ replaceRE "\n" " " .Page.Params.abstract }}",
|
|
32
|
+
"isPartOf": {
|
|
33
|
+
{{ end -}}
|
|
34
|
+
{{ if eq .Site.Data.publication.pub_type "book" -}}
|
|
35
|
+
"type": "Book",
|
|
36
|
+
"name": "{{ partial "site-title.html" . }}",
|
|
37
|
+
"isbn": "{{ replace .Site.Data.publication.identifier.isbn "-" "" }}",
|
|
38
|
+
{{ else if eq .Site.Data.publication.pub_type "journal-periodical" -}}
|
|
39
|
+
"type": "PublicationIssue",
|
|
40
|
+
"name": "{{ partial "site-title.html" . }}",
|
|
41
|
+
"issueNumber": "{{ .Site.Data.publication.series_issue_number }}",
|
|
42
|
+
"isPartOf": {
|
|
43
|
+
"type": "Periodical",
|
|
44
|
+
"name": "{{ .Site.Data.publication.title }}",
|
|
45
|
+
"issn": "{{ .Site.Data.publication.identifier.issn }}"
|
|
46
|
+
},
|
|
47
|
+
{{ else -}}
|
|
48
|
+
"type": "WebSite",
|
|
49
|
+
"name": "{{ partial "site-title.html" . }}",
|
|
50
|
+
{{ end -}}
|
|
51
|
+
"url": "{{ .Site.BaseURL }}",
|
|
52
|
+
{{ with .Site.Data.publication.subject -}}
|
|
53
|
+
{{ $gettyVocab := len (where . "type" "getty" ) -}}
|
|
54
|
+
{{- if gt $gettyVocab 0 -}}
|
|
55
|
+
"about": [
|
|
56
|
+
{{ $len := len (where . "type" "getty" ) -}}
|
|
57
|
+
{{ range $index, $element := where . "type" "getty" -}}
|
|
58
|
+
{
|
|
59
|
+
"type": "{{ if in .identifier "/ulan/" }}Person{{ else if in .identifier "/tgn/" }}Place{{ else }}Thing{{ end }}",
|
|
60
|
+
"name": "{{ .name }}",
|
|
61
|
+
"identifier": "{{ .identifier }}"
|
|
62
|
+
}{{ if ne $index (sub $len 1) }},{{ else }}{{ end }}
|
|
63
|
+
{{ end -}}
|
|
64
|
+
],
|
|
65
|
+
{{ end -}}
|
|
66
|
+
{{ end -}}
|
|
67
|
+
{{ with .Site.Data.publication.contributor -}}
|
|
68
|
+
{{- $contributor := len (where . "type" "primary") -}}
|
|
69
|
+
{{- if gt $contributor 0 -}}
|
|
70
|
+
"author": [
|
|
71
|
+
{{ $len := len (where . "type" "primary") -}}
|
|
72
|
+
{{ range $index, $element := where . "type" "primary" -}}
|
|
73
|
+
{
|
|
74
|
+
"type": "Person",
|
|
75
|
+
"name": "{{ if .full_name }}{{ .full_name }}{{ else }}{{ .first_name }} {{ .last_name }}{{ end }}",
|
|
76
|
+
"jobTitle": "{{ .title }}",
|
|
77
|
+
"affiliation": "{{ .affiliation }}",
|
|
78
|
+
"identifier": "{{ .url }}"
|
|
79
|
+
}{{ if ne $index (sub $len 1) }},{{ else }}{{ end }}
|
|
80
|
+
{{ end -}}
|
|
81
|
+
],
|
|
82
|
+
{{ end -}}
|
|
83
|
+
{{ end -}}
|
|
84
|
+
"datePublished": "{{ .Site.Data.publication.pub_date }}",
|
|
85
|
+
{{ with .Site.Data.publication.revision_history -}}
|
|
86
|
+
{{ $len := len . -}}
|
|
87
|
+
{{ range $index, $element := . -}}
|
|
88
|
+
{{ if and (gt $index 0) (eq $index (sub $len 1)) -}}
|
|
89
|
+
"dateModified": "{{ .date }}",
|
|
90
|
+
{{ else -}}
|
|
91
|
+
{{ end -}}
|
|
92
|
+
{{ end -}}
|
|
93
|
+
{{ end -}}
|
|
94
|
+
"keywords": "{{ with .Site.Data.publication.subject }}{{ range $index, $element := where . "type" "keyword" }}{{ $len := len . -}}{{ .name }}{{ if ne $index (sub $len 1) }}, {{ else }}{{ end }}{{ end }}{{ end }}",
|
|
95
|
+
"license": "{{ .Site.Data.publication.license.url }}",
|
|
96
|
+
{{ with .Site.Data.publication.publisher -}}
|
|
97
|
+
"publisher": [
|
|
98
|
+
{{ $len := len . -}}
|
|
99
|
+
{{ range $index, $element := . -}}
|
|
100
|
+
{
|
|
101
|
+
"type": "Organization",
|
|
102
|
+
"name": "{{ .name }}",
|
|
103
|
+
"location": { "type": "PostalAddress", "addressLocality": "{{ .location }}" },
|
|
104
|
+
"identifier": "{{ .url }}"
|
|
105
|
+
}{{ if ne $index (sub $len 1) }},{{ else }}{{ end }}
|
|
106
|
+
{{ end -}}
|
|
107
|
+
],
|
|
108
|
+
{{ end -}}
|
|
109
|
+
{{ with .Site.Data.publication.promo_image -}}
|
|
110
|
+
"image": "{{ $.Site.BaseURL }}{{ $.Site.Params.imageDir }}{{ . }}",
|
|
111
|
+
{{ end -}}
|
|
112
|
+
"description": "{{ replaceRE "\n" " " .Site.Data.publication.description.full }}"
|
|
113
|
+
{{ if eq .Type "essay" -}}
|
|
114
|
+
}
|
|
115
|
+
{{ end -}}
|
|
116
|
+
}
|
|
117
|
+
</script>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{{/*
|
|
2
|
+
Reusable partial to display a list of links with arrow_forward
|
|
3
|
+
*/}}
|
|
4
|
+
|
|
5
|
+
<ul class="menu-list">
|
|
6
|
+
{{ range . }}
|
|
7
|
+
<li>
|
|
8
|
+
<a href="{{ .url | relURL }}" target="_blank" {{ with .link_relation }}rel="{{ . }}"{{ end }} {{ with .media_type }}type="{{ . }}"{{ end }}>
|
|
9
|
+
{{ .name }}
|
|
10
|
+
<span class="arrow remove-from-epub">
|
|
11
|
+
{{- partial "icon.html" (dict "type" "arrow-forward" "description" "") -}}
|
|
12
|
+
</span>
|
|
13
|
+
</a>
|
|
14
|
+
</li>
|
|
15
|
+
{{ end }}
|
|
16
|
+
</ul>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{{/*
|
|
2
|
+
Reusable partial to display a list of links.
|
|
3
|
+
*/}}
|
|
4
|
+
|
|
5
|
+
<ul class="menu-list">
|
|
6
|
+
{{ range . }}
|
|
7
|
+
<li>
|
|
8
|
+
<a href="{{ if .url }}{{ printf "%s" .url | relURL }}{{ else }}#{{end}}" target="_blank" {{ with .link_relation }}rel="{{ . }}"{{ end }} {{ with .media_type }}type="{{ . }}"{{ end }}>{{ .name }}</a>
|
|
9
|
+
</li>
|
|
10
|
+
{{ end }}
|
|
11
|
+
</ul>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{{/*
|
|
2
|
+
Complete title block for publication.
|
|
3
|
+
*/}}
|
|
4
|
+
<header class="quire-menu__header">
|
|
5
|
+
{{ if ne .Kind "home" -}}
|
|
6
|
+
<a class="quire-menu__header__title-link" href="{{ .Site.BaseURL | relURL }}">
|
|
7
|
+
{{- end }}
|
|
8
|
+
<h4 class="quire-menu__header__title">
|
|
9
|
+
<span class="visually-hidden">Site Title: </span>
|
|
10
|
+
{{- partial "site-title.html" . | markdownify -}}
|
|
11
|
+
</h4>
|
|
12
|
+
{{ if ne .Kind "home" -}}
|
|
13
|
+
</a>
|
|
14
|
+
{{- end }}
|
|
15
|
+
{{- if .Site.Data.publication.contributor_as_it_appears -}}
|
|
16
|
+
<div class="quire-menu__header__contributors">
|
|
17
|
+
{{ .Site.Data.publication.contributor_as_it_appears | markdownify }}
|
|
18
|
+
</div>
|
|
19
|
+
{{ else if .Site.Data.publication.contributor }}
|
|
20
|
+
<div class="quire-menu__header__contributors">
|
|
21
|
+
<span class="visually-hidden">Contributors: </span>
|
|
22
|
+
{{ partial "contributor-list.html" (dict "range" .Site.Data.publication.contributor "contributorType" "primary" "listType" "string" "Site" $.Site) }}
|
|
23
|
+
</div>
|
|
24
|
+
{{- end }}
|
|
25
|
+
</header>
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{{/*
|
|
2
|
+
This controlls the global table of contents for the publication, which is
|
|
3
|
+
available on all pages. For users with Javascript enabled, this menu is hidden
|
|
4
|
+
by default. Users with JS disabled will alwasy see the menu in its expanded state.
|
|
5
|
+
*/}}
|
|
6
|
+
|
|
7
|
+
{{- $contents := dict "site" .Site "contentsScope" "" "contentsLocation" ".Params.menu" "contentsPage" . }}
|
|
8
|
+
|
|
9
|
+
<div class="quire-menu menu"
|
|
10
|
+
role="banner"
|
|
11
|
+
id="site-menu__inner">
|
|
12
|
+
{{- if isset $.Site.Params "imagedir" }}
|
|
13
|
+
{{ $.Scratch.Set "imageDir" $.Site.Params.imageDir }}
|
|
14
|
+
{{ else }}
|
|
15
|
+
{{ $.Scratch.Set "imageDir" "" }}
|
|
16
|
+
{{ end -}}
|
|
17
|
+
{{- $imgDir := $.Scratch.Get "imageDir" -}}
|
|
18
|
+
{{ partial "menu-header.html" . }}
|
|
19
|
+
|
|
20
|
+
<nav id="nav" class="quire-menu__list menu-list" role="navigation" aria-label="full">
|
|
21
|
+
<h3 class="visually-hidden">Table of Contents</h3>
|
|
22
|
+
{{- partial "contents-list/contents-list.html" $contents -}}
|
|
23
|
+
</nav>
|
|
24
|
+
|
|
25
|
+
{{ if isset .Site.Data.publication "resource_link" -}}
|
|
26
|
+
{{ $otherFormats := where .Site.Data.publication.resource_link "type" "other-format" }}
|
|
27
|
+
{{ $relatedResources := where .Site.Data.publication.resource_link "type" "related-resource" }}
|
|
28
|
+
{{ if gt (len $relatedResources) 0 -}}
|
|
29
|
+
<div class="quire-menu__formats">
|
|
30
|
+
<h6>Resources</h6>
|
|
31
|
+
<div role="complementary" aria-label="related resources">
|
|
32
|
+
{{- partial "link-list.html" $relatedResources -}}
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
{{ end -}}
|
|
36
|
+
{{ if gt (len $otherFormats) 0 -}}
|
|
37
|
+
<div class="quire-menu__formats">
|
|
38
|
+
<h6>Other Formats</h6>
|
|
39
|
+
<div role="complementary" aria-label="downloads">
|
|
40
|
+
{{- partial "link-list.html" $otherFormats -}}
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
{{ end -}}
|
|
44
|
+
{{ end -}}
|
|
45
|
+
|
|
46
|
+
<div class="quire-menu__formats">
|
|
47
|
+
<h6>Cite this Page</h6>
|
|
48
|
+
<div class="cite-this" style="font-size: .857em; line-height: 1.5;">
|
|
49
|
+
<span class="cite-this__heading" style="display: block; font-weight: bold; margin-top: 1em;">Chicago</span>
|
|
50
|
+
<span class="cite-this__text" style="user-select: all;">{{ partial "cite-this.html" (dict "page" . "site" .Site "type" "chicago" "range" "page") }}</span>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="cite-this" style="font-size: .857em; line-height: 1.5;">
|
|
53
|
+
<span class="cite-this__heading" style="display: block; font-weight: bold; margin-top: 1em;">MLA</span>
|
|
54
|
+
<span class="cite-this__text" style="user-select: all;">{{ partial "cite-this.html" (dict "page" . "site" .Site "type" "mla" "range" "page") }}</span>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
|
|
58
|
+
<footer class="quire-menu__footer" role="contentinfo">
|
|
59
|
+
{{ partial "copyright.html" . }}
|
|
60
|
+
|
|
61
|
+
{{ if isset .Site.Data.publication "resource_link" -}}
|
|
62
|
+
{{ $footerLinks := where .Site.Data.publication.resource_link "type" "footer-link" }}
|
|
63
|
+
{{ if gt (len $footerLinks) 0 -}}
|
|
64
|
+
{{- partial "link-list.html" $footerLinks -}}
|
|
65
|
+
{{- end -}}
|
|
66
|
+
{{- end -}}
|
|
67
|
+
</footer>
|
|
68
|
+
|
|
69
|
+
</div>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<meta name="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 }}">
|
|
2
|
+
<meta name="keywords" content="{{ if .Site.Data.publication.subject }}{{ range $index, $element := where .Site.Data.publication.subject "type" "keyword" }}{{ $len := len . -}}{{ .name }}{{ if ne $index (sub $len 1) }}, {{ else }}{{ end }}{{ end }}{{ end }}">
|
|
3
|
+
<link rel="canonical" href="{{ .Permalink | relURL }}">
|
|
4
|
+
<link rel="version-history" href="{{ .Site.Data.publication.repository_url }}">
|
|
5
|
+
{{ if .Site.Data.publication.publisher -}}
|
|
6
|
+
{{- range .Site.Data.publication.publisher -}}
|
|
7
|
+
{{- with .url -}}
|
|
8
|
+
<link rel="publisher" href="{{ . | relURL }}">
|
|
9
|
+
{{ end -}}
|
|
10
|
+
{{ end -}}
|
|
11
|
+
{{ end -}}
|
|
12
|
+
{{ if .Site.Data.publication.contributor -}}
|
|
13
|
+
{{ range where .Site.Data.publication.contributor "type" "primary" -}}
|
|
14
|
+
{{ with .url -}}
|
|
15
|
+
<link rel="author" href="{{ . | relURL }}">
|
|
16
|
+
{{ end -}}
|
|
17
|
+
{{ end -}}
|
|
18
|
+
{{ range where .Site.Data.publication.contributor "type" "secondary" -}}
|
|
19
|
+
{{ with .url -}}
|
|
20
|
+
<link rel="author" href="{{ . | relURL }}">
|
|
21
|
+
{{ end -}}
|
|
22
|
+
{{ end -}}
|
|
23
|
+
{{ end -}}
|
|
24
|
+
{{- partial "dublin-core.html" . -}}
|
|
25
|
+
{{- partial "open-graph.html" . -}}
|
|
26
|
+
{{- partial "twitter-card.html" . -}}
|
|
27
|
+
{{- partial "json-ld.html" . -}}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
{{/*
|
|
2
|
+
This controls the various navigation elements (nav, skip-link, menu and
|
|
3
|
+
search icons, and search results if enabled). It is visible on all pages.
|
|
4
|
+
|
|
5
|
+
A note that while Hugo includes .Next and .Prev variables that can be used
|
|
6
|
+
to connect to the next and previous pages in the linear order of the site,
|
|
7
|
+
Quire makes available the option of hiding pages from the linear order in the
|
|
8
|
+
book in order to have custom pages in other formats (PDF, EPUB, etc.).
|
|
9
|
+
Because of this, the .Next and .Prev variables are not used here, and instead
|
|
10
|
+
eligible pages are ranged through and based on weight, the next or previous
|
|
11
|
+
one in the range is linked to.
|
|
12
|
+
*/}}
|
|
13
|
+
|
|
14
|
+
{{- if isset $.Site.Params "imagedir" }}
|
|
15
|
+
{{ $.Scratch.Set "imageDir" $.Site.Params.imageDir }}
|
|
16
|
+
{{ else }}
|
|
17
|
+
{{ $.Scratch.Set "imageDir" "" }}
|
|
18
|
+
{{ end -}}
|
|
19
|
+
{{- $imgDir := $.Scratch.Get "imageDir" -}}
|
|
20
|
+
|
|
21
|
+
<div class="quire-navbar">
|
|
22
|
+
|
|
23
|
+
<a href="#main" class="quire-navbar-skip-link" tabindex="1">
|
|
24
|
+
Skip to Main Content
|
|
25
|
+
</a>
|
|
26
|
+
|
|
27
|
+
<nav class="quire-navbar-controls">
|
|
28
|
+
<div class="quire-navbar-controls__left">
|
|
29
|
+
<button class="quire-navbar-button search-button"
|
|
30
|
+
aria-controls="quire-search"
|
|
31
|
+
onclick="toggleSearch()">
|
|
32
|
+
<svg class="remove-from-epub">
|
|
33
|
+
<switch>
|
|
34
|
+
<use xlink:href="#search-icon"></use>
|
|
35
|
+
<foreignObject width="32" height="32">
|
|
36
|
+
<img src="{{ $imgDir | relURL }}/icons/search.png" alt="Search" />
|
|
37
|
+
</foreignObject>
|
|
38
|
+
</switch>
|
|
39
|
+
</svg>
|
|
40
|
+
<span class="visually-hidden">Search</span>
|
|
41
|
+
</button>
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
<div class="quire-navbar-controls__center">
|
|
45
|
+
<ul class="quire-navbar-page-controls" role="navigation" aria-label="quick">
|
|
46
|
+
|
|
47
|
+
{{- $pages := .Site.Pages -}}
|
|
48
|
+
{{- $pages := where $pages "Params.online" "!=" "false" }}
|
|
49
|
+
{{- $pages := where $pages ".Type" "!=" "data" -}}
|
|
50
|
+
|
|
51
|
+
{{- range $index, $element := $pages -}}
|
|
52
|
+
{{- if eq $index 0 -}}
|
|
53
|
+
{{- $.Scratch.Set "homepage" .File.UniqueID -}}
|
|
54
|
+
{{- $.Scratch.Set "homepage-link" .Permalink -}}
|
|
55
|
+
{{- end -}}
|
|
56
|
+
{{- if eq $index 1 -}}
|
|
57
|
+
{{- $.Scratch.Set "secondpage-link" .Permalink -}}
|
|
58
|
+
{{- end -}}
|
|
59
|
+
{{- end -}}
|
|
60
|
+
|
|
61
|
+
{{- if eq .File.UniqueID ($.Scratch.Get "homepage") -}}
|
|
62
|
+
|
|
63
|
+
<li class="quire-navbar-page-controls__item quire-home-page">
|
|
64
|
+
<a href='{{ $.Scratch.Get "secondpage-link" | relURL }}' rel="next">
|
|
65
|
+
<span class="visually-hidden">Next Page: </span>
|
|
66
|
+
<span class="quire-navbar-button play-button">
|
|
67
|
+
<svg class="remove-from-epub">
|
|
68
|
+
<switch>
|
|
69
|
+
<use xlink:href="#start-icon"></use>
|
|
70
|
+
<foreignObject width="32" height="32">
|
|
71
|
+
<img src="{{ $imgDir | relURL }}/icons/play.png" alt="Next Page" />
|
|
72
|
+
</foreignObject>
|
|
73
|
+
</switch>
|
|
74
|
+
</svg>
|
|
75
|
+
</span>
|
|
76
|
+
</a>
|
|
77
|
+
</li>
|
|
78
|
+
|
|
79
|
+
{{- else -}}
|
|
80
|
+
|
|
81
|
+
{{- $previousPages := where $pages "Weight" "lt" .Weight -}}
|
|
82
|
+
{{- if gt (len $previousPages) 0 -}}
|
|
83
|
+
{{- range last 1 $previousPages -}}
|
|
84
|
+
<li class="quire-navbar-page-controls__item quire-previous-page">
|
|
85
|
+
<a href='{{ .Permalink | relURL }}' rel="previous">
|
|
86
|
+
<span class="visually-hidden">Previous Page: </span>
|
|
87
|
+
<svg class="left-icon remove-from-epub">
|
|
88
|
+
<switch>
|
|
89
|
+
<use xlink:href="#left-arrow-icon"></use>
|
|
90
|
+
<foreignObject width="24" height="24">
|
|
91
|
+
<img src="{{ $imgDir | relURL }}/icons/left-arrow.png" alt="Previous Page" />
|
|
92
|
+
</foreignObject>
|
|
93
|
+
</switch>
|
|
94
|
+
</svg>
|
|
95
|
+
<span class="nav-label">{{- with .Params.label }}{{ . }}{{ $.Site.Params.pageLabelDivider }}{{ end }}{{- if .Params.short_title }}{{ .Params.short_title | markdownify }} {{ else }}{{ .Title | markdownify | truncate 34 }}{{ end -}}</span>
|
|
96
|
+
</a>
|
|
97
|
+
</li>
|
|
98
|
+
{{- end -}}
|
|
99
|
+
{{- end -}}
|
|
100
|
+
|
|
101
|
+
<li class="quire-navbar-page-controls__item quire-home-page">
|
|
102
|
+
<a href='{{ $.Scratch.Get "homepage-link" | relURL }}' rel='home'>
|
|
103
|
+
<span class="visually-hidden">Home Page: </span>
|
|
104
|
+
<span class="quire-navbar-button home-button">
|
|
105
|
+
<svg class="remove-from-epub">
|
|
106
|
+
<switch>
|
|
107
|
+
<use xlink:href="#home-icon"></use>
|
|
108
|
+
<foreignObject width="32" height="32">
|
|
109
|
+
<img src="{{ $imgDir | relURL }}/icons/home.png" alt="Home Page" />
|
|
110
|
+
</foreignObject>
|
|
111
|
+
</switch>
|
|
112
|
+
</svg>
|
|
113
|
+
</span>
|
|
114
|
+
</a>
|
|
115
|
+
</li>
|
|
116
|
+
|
|
117
|
+
{{- $nextPages := where $pages "Weight" "gt" .Weight -}}
|
|
118
|
+
{{- if gt (len $nextPages) 0 -}}
|
|
119
|
+
{{- range first 1 $nextPages -}}
|
|
120
|
+
<li class="quire-navbar-page-controls__item quire-next-page">
|
|
121
|
+
<a href='{{ .Permalink | relURL }}' rel='next'>
|
|
122
|
+
<span class="visually-hidden">Next Page: </span>
|
|
123
|
+
<span class="nav-label">{{- with .Params.label }}{{ . }}{{ $.Site.Params.pageLabelDivider }}{{ end }}{{- if .Params.short_title }}{{ .Params.short_title | markdownify }} {{ else }}{{ .Title | markdownify | truncate 34 }}{{ end -}}</span>
|
|
124
|
+
<svg class="remove-from-epub">
|
|
125
|
+
<switch>
|
|
126
|
+
<use xlink:href="#right-arrow-icon"></use>
|
|
127
|
+
<foreignObject width="24" height="24">
|
|
128
|
+
<img src="{{ $imgDir | relURL }}/icons/right-arrow.png" alt="Next Page" />
|
|
129
|
+
</foreignObject>
|
|
130
|
+
</switch>
|
|
131
|
+
</svg>
|
|
132
|
+
</a>
|
|
133
|
+
</li>
|
|
134
|
+
{{- end -}}
|
|
135
|
+
{{- end -}}
|
|
136
|
+
|
|
137
|
+
{{- end -}}
|
|
138
|
+
|
|
139
|
+
</ul>
|
|
140
|
+
</div>
|
|
141
|
+
|
|
142
|
+
<div class="quire-navbar-controls__right">
|
|
143
|
+
<button class="quire-navbar-button menu-button"
|
|
144
|
+
id="quire-controls-menu-button"
|
|
145
|
+
onclick="toggleMenu()"
|
|
146
|
+
aria-expanded="true"
|
|
147
|
+
aria-controls="quire-menu"
|
|
148
|
+
tabindex="2" >
|
|
149
|
+
<svg class="remove-from-epub">
|
|
150
|
+
<switch>
|
|
151
|
+
<use xlink:href="#nav-icon"></use>
|
|
152
|
+
<foreignObject width="32" height="32">
|
|
153
|
+
<img src="{{ $imgDir | relURL }}/icons/nav.png" alt="Table of Contents" />
|
|
154
|
+
</foreignObject>
|
|
155
|
+
</switch>
|
|
156
|
+
</svg>
|
|
157
|
+
<span class="visually-hidden">Table of Contents</span>
|
|
158
|
+
</button>
|
|
159
|
+
</div>
|
|
160
|
+
</nav>
|
|
161
|
+
|
|
162
|
+
<div class="quire-progress-bar">
|
|
163
|
+
{{ $len := len $pages }}
|
|
164
|
+
{{ range $index, $element := $pages }}
|
|
165
|
+
{{ if eq . $.Page }}
|
|
166
|
+
<div style="width: calc(100% * ({{ add $index 1 }} / {{ $len }}));">
|
|
167
|
+
<span>{{ add $index 1 }}/{{ $len }}</span>
|
|
168
|
+
</div>
|
|
169
|
+
{{ end }}
|
|
170
|
+
{{ end }}
|
|
171
|
+
</div>
|
|
172
|
+
|
|
173
|
+
</div>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{{- if ne .Type "essay" -}}
|
|
2
|
+
<!-- Books and Integrated Book Parts/Chapters -->
|
|
3
|
+
<meta property="og:title" content="{{ partial "site-title.html" . }}" />
|
|
4
|
+
<meta property="og:url" content="{{ .Site.BaseURL }}" />
|
|
5
|
+
<meta property="og:image" content="{{ with .Site.Data.publication.promo_image }}{{ $.Site.BaseURL }}{{ $.Site.Params.imageDir }}{{ . }}{{ end }}" />
|
|
6
|
+
<meta property="og: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
|
+
{{- if eq .Site.Data.publication.pub_type "book" -}}
|
|
8
|
+
<meta property="og:type" content="book" />
|
|
9
|
+
{{ if .Site.Data.publication.contributor -}}
|
|
10
|
+
{{ range where .Site.Data.publication.contributor "type" "primary" -}}
|
|
11
|
+
<meta property="og:book:author" content="{{ if .full_name }}{{ .full_name }}{{ else }}{{ .first_name }} {{ .last_name }}{{ end }}" />
|
|
12
|
+
{{ end -}}
|
|
13
|
+
{{ end -}}
|
|
14
|
+
<meta property="og:book:isbn" content="{{ replace .Site.Data.publication.identifier.isbn "-" "" }}" />
|
|
15
|
+
<meta property="og:book:release_date" content="{{ .Site.Data.publication.pub_date }}" />
|
|
16
|
+
{{- end -}}
|
|
17
|
+
{{- else -}}
|
|
18
|
+
<!-- Standalone Essays/Articles w/i Books -->
|
|
19
|
+
<meta property="og:title" content="{{ partial "page-title.html" . }}" />
|
|
20
|
+
<meta property="og:url" content="{{ .Permalink }}" />
|
|
21
|
+
{{- if .Page.Params.cover -}}
|
|
22
|
+
<meta property="og:image" content="{{ .Site.BaseURL }}{{ .Site.Params.imageDir }}{{ .Site.Params.figureSubDir }}{{ .Page.Params.cover }}" />
|
|
23
|
+
{{- else -}}
|
|
24
|
+
<meta property="og:image" content="{{ with .Site.Data.publication.promo_image }}{{ $.Site.BaseURL }}{{ $.Site.Params.imageDir }}{{ . }}{{ end }}" />
|
|
25
|
+
{{- end -}}
|
|
26
|
+
{{- if .Page.Params.abstract -}}
|
|
27
|
+
<meta property="og:description" content="{{ .Page.Params.abstract | truncate 160 }}" />
|
|
28
|
+
{{- else -}}
|
|
29
|
+
<meta property="og: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 -}}" />
|
|
30
|
+
{{- end -}}
|
|
31
|
+
<meta property="og:type" content="article" />
|
|
32
|
+
<meta property="og:site_name" content="{{ partial "site-title.html" . }}" />
|
|
33
|
+
<meta property="og:article:published_time" content="{{ .Site.Data.publication.pub_date }}" />
|
|
34
|
+
{{ range .Page.Params.contributor -}}
|
|
35
|
+
{{ if .id -}}
|
|
36
|
+
{{ range where $.Site.Data.publication.contributor "id" .id -}}
|
|
37
|
+
<meta property="og:article:author" content="{{ if .full_name }}{{ .full_name }}{{ else }}{{ .first_name }} {{ .last_name }}{{ end }}" />
|
|
38
|
+
{{ end -}}
|
|
39
|
+
{{ else -}}
|
|
40
|
+
<meta property="og:article:author" content="{{ if .full_name }}{{ .full_name }}{{ else }}{{ .first_name }} {{ .last_name }}{{ end }}" />
|
|
41
|
+
{{ end -}}
|
|
42
|
+
{{ end -}}
|
|
43
|
+
{{ end -}}
|