@thegetty/quire-cli 0.20.2 → 0.20.3
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/index.js +20 -0
- package/package.json +1 -1
- package/CHANGELOG.md +0 -46
- package/bin/.DS_Store +0 -0
- package/bin/go-iiif/.DS_Store +0 -0
- package/bin/index.js +0 -2
- package/bin/starters/README.md +0 -0
- package/bin/starters/default/.circleci/config.yml +0 -98
- package/bin/starters/default/.gitignore +0 -14
- package/bin/starters/default/.nojekyll +0 -0
- package/bin/starters/default/CHANGELOG.md +0 -38
- package/bin/starters/default/README.md +0 -25
- package/bin/starters/default/bin/deploy.sh +0 -25
- package/bin/starters/default/config/_default/config.yml +0 -53
- package/bin/starters/default/config/development/config.yml +0 -14
- package/bin/starters/default/config/environments/dev.yml +0 -14
- package/bin/starters/default/config/environments/github.yml +0 -15
- package/bin/starters/default/config/environments/netlify.yml +0 -18
- package/bin/starters/default/config/epub.yml +0 -15
- package/bin/starters/default/config/pdf.yml +0 -16
- package/bin/starters/default/config/site.yml +0 -13
- package/bin/starters/default/config.yml +0 -53
- package/bin/starters/default/content/about.md +0 -20
- package/bin/starters/default/content/bibliography.md +0 -7
- package/bin/starters/default/content/catalogue/1.md +0 -28
- package/bin/starters/default/content/catalogue/2.md +0 -29
- package/bin/starters/default/content/catalogue/3.md +0 -20
- package/bin/starters/default/content/catalogue/4.md +0 -22
- package/bin/starters/default/content/catalogue/catalogue-index.md +0 -8
- package/bin/starters/default/content/contents.md +0 -7
- package/bin/starters/default/content/contributors.md +0 -7
- package/bin/starters/default/content/cover.md +0 -11
- package/bin/starters/default/content/essay.md +0 -80
- package/bin/starters/default/content/intro.md +0 -21
- package/bin/starters/default/content/search-index.md +0 -8
- package/bin/starters/default/data/figures.yml +0 -90
- package/bin/starters/default/data/objects.yml +0 -49
- package/bin/starters/default/data/publication.yml +0 -149
- package/bin/starters/default/data/references.yml +0 -11
- package/bin/starters/default/static/css/custom.css +0 -0
- package/bin/starters/default/static/data/sample-geojson.json +0 -16
- 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 +0 -4
- package/bin/themes/README.md +0 -0
- package/bin/themes/default/.circleci/config.yml +0 -62
- package/bin/themes/default/.eslintrc.js +0 -16
- package/bin/themes/default/.gitignore +0 -13
- package/bin/themes/default/.scss-lint.yml +0 -239
- package/bin/themes/default/CHANGELOG.md +0 -73
- package/bin/themes/default/LICENSE.md +0 -20
- package/bin/themes/default/README.md +0 -112
- package/bin/themes/default/archetypes/default.md +0 -2
- package/bin/themes/default/cypress.json +0 -7
- package/bin/themes/default/layouts/404.html +0 -0
- package/bin/themes/default/layouts/_default/baseof.html +0 -43
- package/bin/themes/default/layouts/_default/single.html +0 -26
- package/bin/themes/default/layouts/contents/single.html +0 -37
- package/bin/themes/default/layouts/cover/single.html +0 -128
- package/bin/themes/default/layouts/data/search-index.html +0 -65
- package/bin/themes/default/layouts/entry/single.html +0 -372
- package/bin/themes/default/layouts/essay/single.html +0 -24
- package/bin/themes/default/layouts/partials/analytics.html +0 -29
- package/bin/themes/default/layouts/partials/cite-this.html +0 -348
- package/bin/themes/default/layouts/partials/contents-list/card-image.html +0 -13
- package/bin/themes/default/layouts/partials/contents-list/closing-tags.html +0 -59
- package/bin/themes/default/layouts/partials/contents-list/contents-list.html +0 -179
- package/bin/themes/default/layouts/partials/contents-list/file-dir.html +0 -7
- package/bin/themes/default/layouts/partials/contents-list/file-path.html +0 -10
- package/bin/themes/default/layouts/partials/contents-list/list-item-type.html +0 -9
- package/bin/themes/default/layouts/partials/contents-list/list-item-types/abstract.html +0 -17
- package/bin/themes/default/layouts/partials/contents-list/list-item-types/brief.html +0 -7
- package/bin/themes/default/layouts/partials/contents-list/list-item-types/default.html +0 -9
- package/bin/themes/default/layouts/partials/contents-list/list-item-types/grid.html +0 -30
- package/bin/themes/default/layouts/partials/contents-list/section-heading.html +0 -5
- package/bin/themes/default/layouts/partials/contents-list.html +0 -207
- package/bin/themes/default/layouts/partials/contributor-info.html +0 -78
- package/bin/themes/default/layouts/partials/contributor-list.html +0 -102
- package/bin/themes/default/layouts/partials/copyright.html +0 -155
- package/bin/themes/default/layouts/partials/debug-contents.html +0 -8
- package/bin/themes/default/layouts/partials/dublin-core.html +0 -21
- package/bin/themes/default/layouts/partials/error-message.html +0 -19
- package/bin/themes/default/layouts/partials/figure-caption.html +0 -1
- package/bin/themes/default/layouts/partials/figure-fallback.html +0 -31
- package/bin/themes/default/layouts/partials/figure-image.html +0 -44
- package/bin/themes/default/layouts/partials/figure-label.html +0 -15
- package/bin/themes/default/layouts/partials/figure-soundcloud.html +0 -25
- package/bin/themes/default/layouts/partials/figure-table.html +0 -44
- package/bin/themes/default/layouts/partials/figure-vimeo.html +0 -24
- package/bin/themes/default/layouts/partials/figure-website.html +0 -21
- package/bin/themes/default/layouts/partials/figure-youtube.html +0 -23
- package/bin/themes/default/layouts/partials/figures/caption.html +0 -44
- package/bin/themes/default/layouts/partials/figures/label.html +0 -35
- package/bin/themes/default/layouts/partials/figures/media-types/fallback.html +0 -32
- package/bin/themes/default/layouts/partials/figures/media-types/image.html +0 -54
- package/bin/themes/default/layouts/partials/figures/media-types/soundcloud.html +0 -35
- package/bin/themes/default/layouts/partials/figures/media-types/table.html +0 -53
- package/bin/themes/default/layouts/partials/figures/media-types/vimeo.html +0 -32
- package/bin/themes/default/layouts/partials/figures/media-types/website.html +0 -24
- package/bin/themes/default/layouts/partials/figures/media-types/youtube.html +0 -29
- package/bin/themes/default/layouts/partials/footer-buttons.html +0 -29
- package/bin/themes/default/layouts/partials/head.html +0 -46
- package/bin/themes/default/layouts/partials/icon.html +0 -20
- package/bin/themes/default/layouts/partials/icons-cc.html +0 -86
- package/bin/themes/default/layouts/partials/icons.html +0 -54
- package/bin/themes/default/layouts/partials/json-ld.html +0 -117
- package/bin/themes/default/layouts/partials/link-list-arrow.html +0 -16
- package/bin/themes/default/layouts/partials/link-list.html +0 -11
- package/bin/themes/default/layouts/partials/menu-header.html +0 -25
- package/bin/themes/default/layouts/partials/menu.html +0 -69
- package/bin/themes/default/layouts/partials/metadata.html +0 -27
- package/bin/themes/default/layouts/partials/navbar.html +0 -173
- package/bin/themes/default/layouts/partials/open-graph.html +0 -43
- package/bin/themes/default/layouts/partials/page-abstract.html +0 -7
- package/bin/themes/default/layouts/partials/page-bibliography.html +0 -59
- package/bin/themes/default/layouts/partials/page-class.html +0 -9
- package/bin/themes/default/layouts/partials/page-contributor.html +0 -48
- package/bin/themes/default/layouts/partials/page-header.html +0 -22
- package/bin/themes/default/layouts/partials/page-title.html +0 -9
- package/bin/themes/default/layouts/partials/page-tombstone.html +0 -36
- package/bin/themes/default/layouts/partials/pdf-info.html +0 -20
- package/bin/themes/default/layouts/partials/pdf-title-pages.html +0 -39
- package/bin/themes/default/layouts/partials/scripts.html +0 -5
- package/bin/themes/default/layouts/partials/search.html +0 -52
- package/bin/themes/default/layouts/partials/site-title.html +0 -9
- package/bin/themes/default/layouts/partials/tests/check-node-modules.html +0 -9
- package/bin/themes/default/layouts/partials/tests/check-page-one-class.html +0 -21
- package/bin/themes/default/layouts/partials/tests/check-page-weights.html +0 -49
- package/bin/themes/default/layouts/partials/tests/run.html +0 -13
- package/bin/themes/default/layouts/partials/twitter-card.html +0 -23
- package/bin/themes/default/layouts/shortcodes/q-bibliography.html +0 -61
- package/bin/themes/default/layouts/shortcodes/q-cite.html +0 -79
- package/bin/themes/default/layouts/shortcodes/q-class.html +0 -3
- package/bin/themes/default/layouts/shortcodes/q-contributor.html +0 -327
- package/bin/themes/default/layouts/shortcodes/q-contributors.html +0 -11
- package/bin/themes/default/layouts/shortcodes/q-figure-group.html +0 -457
- package/bin/themes/default/layouts/shortcodes/q-figure-new.html +0 -70
- package/bin/themes/default/layouts/shortcodes/q-figure-zoom.html +0 -408
- package/bin/themes/default/layouts/shortcodes/q-figure.html +0 -86
- package/bin/themes/default/layouts/sitemap.xml +0 -24
- package/bin/themes/default/layouts/splash/single.html +0 -67
- package/bin/themes/default/package-lock.json +0 -13198
- package/bin/themes/default/package.json +0 -96
- package/bin/themes/default/source/css/application.scss +0 -30
- package/bin/themes/default/source/css/bulma-components.scss +0 -21
- package/bin/themes/default/source/css/colors.scss +0 -16
- package/bin/themes/default/source/css/components/_all.scss +0 -15
- package/bin/themes/default/source/css/components/container.sass +0 -35
- package/bin/themes/default/source/css/components/quire-buttons.scss +0 -95
- package/bin/themes/default/source/css/components/quire-citation.scss +0 -77
- package/bin/themes/default/source/css/components/quire-contents-list.scss +0 -329
- package/bin/themes/default/source/css/components/quire-contributors.scss +0 -131
- package/bin/themes/default/source/css/components/quire-copyright.scss +0 -28
- package/bin/themes/default/source/css/components/quire-cover.scss +0 -216
- package/bin/themes/default/source/css/components/quire-deepzoom.scss +0 -181
- package/bin/themes/default/source/css/components/quire-entry.scss +0 -651
- package/bin/themes/default/source/css/components/quire-figure.scss +0 -589
- package/bin/themes/default/source/css/components/quire-map.scss +0 -17
- package/bin/themes/default/source/css/components/quire-menu.scss +0 -209
- package/bin/themes/default/source/css/components/quire-navbar.scss +0 -366
- package/bin/themes/default/source/css/components/quire-page.scss +0 -920
- package/bin/themes/default/source/css/components/quire-popup.scss +0 -233
- package/bin/themes/default/source/css/components/quire-search.scss +0 -121
- package/bin/themes/default/source/css/epub.scss +0 -549
- package/bin/themes/default/source/css/fonts.scss +0 -159
- package/bin/themes/default/source/css/layout.scss +0 -186
- package/bin/themes/default/source/css/print.scss +0 -613
- package/bin/themes/default/source/css/utilities.scss +0 -345
- package/bin/themes/default/source/css/variables.scss +0 -144
- 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 +0 -604
- package/bin/themes/default/source/js/deepzoom.js +0 -186
- package/bin/themes/default/source/js/epub.js +0 -9
- package/bin/themes/default/source/js/fullscreen.js +0 -190
- package/bin/themes/default/source/js/helper.js +0 -197
- package/bin/themes/default/source/js/map.js +0 -94
- package/bin/themes/default/source/js/navigation.js +0 -59
- package/bin/themes/default/source/js/popup.js +0 -307
- package/bin/themes/default/source/js/search.js +0 -35
- package/bin/themes/default/source/js/soundcloud-api.js +0 -1
- package/bin/themes/default/static/css/epub.css +0 -401
- 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 +0 -9
- package/bin/themes/default/tests/e2e/fixtures/blns.json +0 -483
- package/bin/themes/default/tests/e2e/plugins/index.js +0 -22
- package/bin/themes/default/tests/e2e/specs/quire-contents.spec.js +0 -52
- package/bin/themes/default/tests/e2e/specs/quire-contributors.spec.js +0 -66
- package/bin/themes/default/tests/e2e/specs/quire-entry.spec.js +0 -104
- package/bin/themes/default/tests/e2e/specs/quire-essay.spec.js +0 -105
- package/bin/themes/default/tests/e2e/specs/quire-menu.spec.js +0 -38
- package/bin/themes/default/tests/e2e/specs/quire-modal.spec.js +0 -69
- package/bin/themes/default/tests/e2e/specs/quire-next-back-buttons.spec.js +0 -27
- package/bin/themes/default/tests/e2e/specs/quire-page.spec.js +0 -28
- package/bin/themes/default/tests/e2e/specs/quire-search.spec.js +0 -48
- package/bin/themes/default/tests/e2e/specs/quire-splash.spec.js +0 -38
- package/bin/themes/default/tests/e2e/support/commands.js +0 -25
- package/bin/themes/default/tests/e2e/support/index.js +0 -20
- package/bin/themes/default/theme.toml +0 -22
- package/bin/themes/default/tsconfig.json +0 -5
- package/bin/themes/default/webpack/webpack.config.dev.js +0 -128
- package/bin/themes/default/webpack/webpack.config.epub.js +0 -140
- package/bin/themes/default/webpack/webpack.config.pdf.js +0 -135
- package/bin/themes/default/webpack/webpack.config.prod.js +0 -133
|
@@ -1,457 +0,0 @@
|
|
|
1
|
-
{{ if isset $.Site.Params "imagedir" }}
|
|
2
|
-
{{ $.Scratch.Set "imageDir" $.Site.Params.imageDir }}
|
|
3
|
-
{{ else }}
|
|
4
|
-
{{ $.Scratch.Set "imageDir" "" }}
|
|
5
|
-
{{ end }}
|
|
6
|
-
|
|
7
|
-
{{- $figureId := "" -}}
|
|
8
|
-
{{- $modalLink := "" -}}
|
|
9
|
-
|
|
10
|
-
{{ $errorNoMediaType := dict "shortcode" "q-figure-group" "message" "One of your figures in this group is missing the `media_type` attribute, which must be included in your `data/figures.yml` file for this figure `id`, and must be either “youtube” or “vimeo”." "example" "- id: "3.1"<br /> media_id: "VYqDpNmnu8I"<br /> media_type: "youtube"" }}
|
|
11
|
-
|
|
12
|
-
{{ $errorBadId := dict "shortcode" "q-figure-group" "message" "One or more of the `id` values supplied in this shortcode do not match any corresponding `id` values in your `data/figures.yml` file. Or, the `id` values were not fully comma separated." "example" "{{< q-figure-group id="3.1, 3.2, 3.3" >}}" }}
|
|
13
|
-
|
|
14
|
-
{{ $errorNoId := dict "shortcode" "q-figure-group" "message" "This shortcode must include one or more values for `id` that match corresponding `id` values in your `data/figures.yml` file." "example" "{{< q-figure-group id="3.1, 3.2, 3.3" >}}" }}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
{{ if .Get "id" }}
|
|
18
|
-
|
|
19
|
-
{{/* -------------------- BEGIN ID BLOCK -------------------- */}}
|
|
20
|
-
{{/*
|
|
21
|
-
----------------------------------------------------------------------------
|
|
22
|
-
If the shortcode has an id, split all id values into an array and render
|
|
23
|
-
the figure for each into a figure group
|
|
24
|
-
----------------------------------------------------------------------------
|
|
25
|
-
*/}}
|
|
26
|
-
|
|
27
|
-
{{ $idstring := replace (.Get "id") " " "" }}
|
|
28
|
-
{{ $idlist := split $idstring "," }}
|
|
29
|
-
|
|
30
|
-
<figure class='quire-figure quire-figure--group {{ with .Get "class" }}{{ . }}{{ end }} {{ if eq $.Site.Params.pdf true }}quire-figure--group-pdf {{ end }}'>
|
|
31
|
-
{{ with .Get "grid" }}
|
|
32
|
-
{{ $.Scratch.Add "grid" . }}
|
|
33
|
-
{{ else }}
|
|
34
|
-
{{ $.Scratch.Add "grid" 1 }}
|
|
35
|
-
{{ end }}
|
|
36
|
-
{{/* -------------------- BEGIN IDLIST RANGE -------------------- */}}
|
|
37
|
-
{{ range $i, $e := $idlist }}
|
|
38
|
-
{{ $x := . | string }}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
{{ if modBool $i ($.Scratch.Get "grid") }}
|
|
42
|
-
{{ if ne $i 0 }}</div>{{ end }}
|
|
43
|
-
<div class="quire-figure--group__row columns">
|
|
44
|
-
{{ end }}
|
|
45
|
-
|
|
46
|
-
{{/* -------------------- BEGIN FIGURELIST RANGE -------------------- */}}
|
|
47
|
-
{{ range where $.Site.Data.figures.figure_list "id" "eq" $x }}
|
|
48
|
-
{{ $.Scratch.Add "figCount" 1 }}
|
|
49
|
-
|
|
50
|
-
<figure class=" column quire-grid--{{ $.Scratch.Get "grid" }} quire-figure--group__item {{ if .media_id }}{{ if or (eq .media_type "audio") (eq .media_type "soundcloud") (eq .media_type "youtube") (eq .media_type "vimeo") }}quire-figure--group__item-pdf {{ .media_type }}{{ end }}{{ end }}">
|
|
51
|
-
|
|
52
|
-
{{ if .media_id }}
|
|
53
|
-
{{/* -------------------- BEGIN VIDEO BLOCK -------------------- */}}
|
|
54
|
-
|
|
55
|
-
{{ if and (and (ne .media_type "youtube") (ne .media_type "vimeo")) (ne .media_type "website") (ne .media_type "audio") (ne .media_type "soundcloud")}}
|
|
56
|
-
{{ partial "error-message.html" $errorNoMediaType }}
|
|
57
|
-
{{ else }}
|
|
58
|
-
|
|
59
|
-
{{/* -------------------- START q-figure__wrapper BLOCK -------------------- */}}
|
|
60
|
-
<div class='q-figure__wrapper '>
|
|
61
|
-
{{/* -------------------- START q-figure__wrapper BLOCK -------------------- */}}
|
|
62
|
-
|
|
63
|
-
<div class=' quire-figure__media-wrapper{{ if .aspect_ratio }}--{{ .aspect_ratio }} {{ else if eq .media_type "soundcloud" }} {{ else if eq .media_type "audio" }} {{ else }}--widescreen{{ end }}'>
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
{{ if ne $.Site.Params.pdf true }}
|
|
67
|
-
{{ if eq .media_type "youtube" }}
|
|
68
|
-
<iframe id="{{ .id }}"
|
|
69
|
-
title='{{ if $.Get "title" }}{{ $.Get "title" | markdownify }}{{ else if .title }}{{ .title | markdownify }}{{ end }}'
|
|
70
|
-
class="quire-figure__media {{ if eq $.Site.Params.pdf true }} visually-hidden {{ end }}"
|
|
71
|
-
src="https://www.youtube-nocookie.com/embed/{{ .media_id }}?rel=0&showinfo=0"
|
|
72
|
-
frameborder="0"
|
|
73
|
-
allowfullscreen></iframe>
|
|
74
|
-
{{ else if eq .media_type "vimeo" }}
|
|
75
|
-
<iframe id="{{ .id }}"
|
|
76
|
-
title='{{ if $.Get "title" }}{{ $.Get "title" | markdownify }}{{ else if .title }}{{ .title | markdownify }}{{ end }}'
|
|
77
|
-
class="quire-figure__media {{ if eq $.Site.Params.pdf true }} visually-hidden {{ end }}"
|
|
78
|
-
src="https://player.vimeo.com/video/{{ .media_id }}"
|
|
79
|
-
frameborder="0"
|
|
80
|
-
webkitallowfullscreen
|
|
81
|
-
mozallowfullscreen
|
|
82
|
-
allowfullscreen></iframe>
|
|
83
|
-
{{ else if eq .media_type "audio" }}
|
|
84
|
-
<iframe id='{{ .id }}'
|
|
85
|
-
class=" {{ if eq $.Site.Params.pdf true }} visually-hidden {{ end }}"
|
|
86
|
-
title='{{ if $.Get "title" }}{{ $.Get "title" | markdownify }}{{ else if .title }}{{ .title | markdownify }}{{ end }}'
|
|
87
|
-
width="100%"
|
|
88
|
-
height="166"
|
|
89
|
-
scrolling="no"
|
|
90
|
-
frameborder="no"
|
|
91
|
-
allow="autoplay"
|
|
92
|
-
src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/{{ .media_id }}&color=%23ff5500&auto_play=false&hide_related=true&show_comments=false&show_user=false&show_reposts=false&show_teaser=false"></iframe>
|
|
93
|
-
{{ else if eq .media_type "soundcloud" }}
|
|
94
|
-
<iframe id='{{ .id }}'
|
|
95
|
-
class=" {{ if eq $.Site.Params.pdf true }} visually-hidden {{ end }}"
|
|
96
|
-
title='{{ if $.Get "title" }}{{ $.Get "title" | markdownify }}{{ else if .title }}{{ .title | markdownify }}{{ end }}'
|
|
97
|
-
width="100%"
|
|
98
|
-
height="166"
|
|
99
|
-
scrolling="no"
|
|
100
|
-
frameborder="no"
|
|
101
|
-
allow="autoplay"
|
|
102
|
-
src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/{{ .media_id }}&color=%23ff5500&auto_play=false&hide_related=true&show_comments=false&show_user=false&show_reposts=false&show_teaser=false"></iframe>
|
|
103
|
-
{{ end }}
|
|
104
|
-
</div>
|
|
105
|
-
{{ end }}
|
|
106
|
-
|
|
107
|
-
<div class="quire-figure__video-fallback visually-hidden">
|
|
108
|
-
{{ if .src }}
|
|
109
|
-
<img id="{{ .id }}" src='{{ printf "%s/%s" ($.Scratch.Get "imageDir") .src | relURL }}' alt="{{ if .alt }}{{ .alt }}{{ end }}" />
|
|
110
|
-
{{ else }}
|
|
111
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 36" fill="darkgray">
|
|
112
|
-
<path d="M41.9,13.8C42,15.2,42,16.6,42,18s0,2.8-0.1,4.2c0,0.9-0.3,1.6-0.8,2.2s-1.2,0.9-2.1,0.9c-2,0.1-4.3,0.2-7,0.2 s-5-0.1-7-0.2c-0.8,0-1.5-0.3-2.1-0.9s-0.8-1.4-0.8-2.2C22,20.8,22,19.4,22,18c0-0.9,0.1-2.3,0.2-4.2c0-0.9,0.3-1.6,0.8-2.2 s1.2-0.9,2-0.9c1.9-0.1,4.1-0.2,6.6-0.2H32h0.4c2.5,0,4.7,0.1,6.6,0.2c0.8,0,1.5,0.3,2.1,0.9S41.9,12.9,41.9,13.8z M30.1,21.8 l5.7-3.8l-5.7-3.9V21.8z"/>
|
|
113
|
-
<path d="M0,0v36h64V0H0z M63,35H1V1h62V35z"/>
|
|
114
|
-
</svg>
|
|
115
|
-
{{ end }}
|
|
116
|
-
</div>
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
<div class="quire-figure__media-fallback">
|
|
120
|
-
{{ template "figure-fallback" (dict "map" . "site" $ ) }}
|
|
121
|
-
</div>
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
{{ end }}
|
|
125
|
-
{{/* -------------------- END VIDEO BLOCK -------------------- */}}
|
|
126
|
-
{{ else }}
|
|
127
|
-
|
|
128
|
-
{{/* -------------------- BEGIN NO_MEDIA_ID BLOCK -------------------- */}}
|
|
129
|
-
|
|
130
|
-
{{ if eq $.Site.Params.figureZoom true }}
|
|
131
|
-
|
|
132
|
-
{{ $figureId = printf "%s-%d" "deepzoom" now.UnixNano }}
|
|
133
|
-
|
|
134
|
-
<div class="q-figure__wrapper">
|
|
135
|
-
<figure
|
|
136
|
-
id="{{ $figureId }}"
|
|
137
|
-
{{ if .caption }} title='{{ .caption | markdownify | safeHTML }}' {{ end }}
|
|
138
|
-
class="quire-figure leaflet-outer-wrapper mfp-hide">
|
|
139
|
-
<div
|
|
140
|
-
id="js-{{ $figureId }}"
|
|
141
|
-
class="quire-deepzoom inset leaflet-inner-wrapper "
|
|
142
|
-
aria-live="polite"
|
|
143
|
-
role="application"
|
|
144
|
-
aria-label="Zoomable image"
|
|
145
|
-
{{ if .zoom_max }} data-zoom-max="{{ .zoom_max }}" {{ end }}
|
|
146
|
-
src="{{ printf "%s/%s" ($.Scratch.Get "imageDir") .src | relURL }}">
|
|
147
|
-
</div>
|
|
148
|
-
|
|
149
|
-
</figure>
|
|
150
|
-
|
|
151
|
-
{{ if eq $.Site.Params.figureModal true }}
|
|
152
|
-
{{ $modalLink = printf "%s%s" "#" $figureId }}
|
|
153
|
-
<a
|
|
154
|
-
href="{{ $modalLink }}"
|
|
155
|
-
class='inline popup'
|
|
156
|
-
data-type='inline'
|
|
157
|
-
{{ if .caption }} title='{{ .caption | markdownify | safeHTML }}' {{ end }}>
|
|
158
|
-
{{ end }}
|
|
159
|
-
<img
|
|
160
|
-
id="{{ .id }}"
|
|
161
|
-
class="quire-figure__image"
|
|
162
|
-
src='{{ printf "%s/%s" ($.Scratch.Get "imageDir") .src | relURL }}'
|
|
163
|
-
alt='{{ with .alt }}{{ . }}{{ end }}' />
|
|
164
|
-
|
|
165
|
-
{{ else }}
|
|
166
|
-
|
|
167
|
-
{{ $modalLink = printf "%s/%s" ($.Scratch.Get "imageDir") .src | relURL }}
|
|
168
|
-
<!-- What's going on here -->
|
|
169
|
-
<div class='q-figure__wrapper'>
|
|
170
|
-
{{ if eq $.Site.Params.figureModal true }}
|
|
171
|
-
<a class="image popup" href='{{ $modalLink }}' {{ if .caption }} title='{{ .caption | markdownify | safeHTML }}' {{ end }}>
|
|
172
|
-
{{ end }}
|
|
173
|
-
<img id="{{ .id }}" class="quire-figure__image"
|
|
174
|
-
src='{{ $modalLink }}'
|
|
175
|
-
alt='{{ with .alt }}{{ . }}{{ end }}' />
|
|
176
|
-
|
|
177
|
-
{{ end }}
|
|
178
|
-
|
|
179
|
-
{{/* -------------------- END NO_MEDIA_ID BLOCK -------------------- */}}
|
|
180
|
-
{{ end }}
|
|
181
|
-
|
|
182
|
-
{{/* -------------------- BEGIN LABEL BLOCK -------------------- */}}
|
|
183
|
-
|
|
184
|
-
{{ if eq $.Site.Params.figureLabelLocation "on-top" }}
|
|
185
|
-
{{- $labelDict := dict "Site" $.Site "label" .label "modalLink" $modalLink -}}
|
|
186
|
-
{{- partial "figures/label.html" $labelDict -}}
|
|
187
|
-
{{ end }}
|
|
188
|
-
|
|
189
|
-
</a>
|
|
190
|
-
|
|
191
|
-
{{/* -------------------- END LABEL BLOCK -------------------- */}}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
{{ if eq ($.Get "caption") "" }}
|
|
195
|
-
{{/* -------------------- BEGIN CAPTION BLOCK -------------------- */}}
|
|
196
|
-
|
|
197
|
-
{{- $captionDict := dict "Site" $.Site "caption" .caption "credit" .credit "label" .label "modalLink" $modalLink -}}
|
|
198
|
-
|
|
199
|
-
{{- partial "figures/caption.html" $captionDict -}}
|
|
200
|
-
|
|
201
|
-
{{/* -------------------- END CAPTION BLOCK -------------------- */}}
|
|
202
|
-
|
|
203
|
-
{{/* -------------------- END q-figure__wrapper BLOCK -------------------- */}}
|
|
204
|
-
</div>
|
|
205
|
-
{{/* -------------------- END q-figure__wrapper BLOCK -------------------- */}}
|
|
206
|
-
|
|
207
|
-
{{ end }}
|
|
208
|
-
</figure>
|
|
209
|
-
|
|
210
|
-
{{/* -------------------- END FIGURELIST RANGE -------------------- */}}
|
|
211
|
-
{{ end }}
|
|
212
|
-
|
|
213
|
-
{{/* -------------------- END IDLIST RANGE -------------------- */}}
|
|
214
|
-
{{ end }}
|
|
215
|
-
|
|
216
|
-
{{ with .Get "grid" }}</div>{{ end }}
|
|
217
|
-
|
|
218
|
-
{{/* -------------------- BEGIN ERROR BLOCK -------------------- */}}
|
|
219
|
-
{{ if ne (len $idlist) ($.Scratch.Get "figCount") }}
|
|
220
|
-
{{/*
|
|
221
|
-
------------------------------------------------------------------------
|
|
222
|
-
If after ranging through figure.yml, the count of figures rendered
|
|
223
|
-
is not equal to the count of IDs supplied, post error message
|
|
224
|
-
------------------------------------------------------------------------
|
|
225
|
-
*/}}
|
|
226
|
-
|
|
227
|
-
{{ partial "error-message.html" $errorBadId }}
|
|
228
|
-
|
|
229
|
-
{{/* -------------------- END ERROR BLOCK -------------------- */}}
|
|
230
|
-
{{ end }}
|
|
231
|
-
|
|
232
|
-
{{/* -------------------- BEGIN GROUP CAPTION BLOCK -------------------- */}}
|
|
233
|
-
{{ if or (.Get "caption") (.Get "credit") }}
|
|
234
|
-
<figcaption class="quire-figure__caption">
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
{{ if .Get "popup" }}
|
|
238
|
-
{{ .Get "popup" | markdownify }}
|
|
239
|
-
{{ end }}
|
|
240
|
-
|
|
241
|
-
{{ if .Get "caption" }}
|
|
242
|
-
{{ .Get "caption" | markdownify }}
|
|
243
|
-
{{ end }}
|
|
244
|
-
|
|
245
|
-
{{ if $.Get "credit" }}
|
|
246
|
-
<span class="quire-figure__credit">{{ $.Get "credit" | markdownify }}</span>
|
|
247
|
-
{{ end }}
|
|
248
|
-
</figcaption>
|
|
249
|
-
|
|
250
|
-
{{/* -------------------- END GROUP CAPTION BLOCK -------------------- */}}
|
|
251
|
-
{{ end }}
|
|
252
|
-
</figure>
|
|
253
|
-
|
|
254
|
-
{{/* -------------------- END ID BLOCK -------------------- */}}
|
|
255
|
-
|
|
256
|
-
{{ else }}
|
|
257
|
-
{{/* -------------------- BEGIN ERROR BLOCK -------------------- */}}
|
|
258
|
-
{{/*
|
|
259
|
-
----------------------------------------------------------------------------
|
|
260
|
-
If the shortcode has no id, post an error message.
|
|
261
|
-
----------------------------------------------------------------------------
|
|
262
|
-
*/}}
|
|
263
|
-
|
|
264
|
-
{{ partial "error-message.html" $errorNoId }}
|
|
265
|
-
|
|
266
|
-
{{/* -------------------- END ERROR BLOCK -------------------- */}}
|
|
267
|
-
{{ end }}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
{{ define "figure-fallback" }}
|
|
271
|
-
|
|
272
|
-
{{/* -------------------- BEGIN FALL BACK BLOCK -------------------- */}}
|
|
273
|
-
|
|
274
|
-
{{ if or (eq .site.Site.Params.pdf true) (eq .site.Site.Params.epub true) }}
|
|
275
|
-
|
|
276
|
-
{{ if isset .map "media_type" }}
|
|
277
|
-
|
|
278
|
-
{{- if eq .map.media_type "website" }}
|
|
279
|
-
|
|
280
|
-
{{ if eq .site.Site.Params.epub true }}
|
|
281
|
-
<span class="fallback-image"><img src='{{ .site.Scratch.Get "imageDir" | relURL }}/icons/website.png'/></span>
|
|
282
|
-
{{ else }}
|
|
283
|
-
<iframe id='{{ .map.id }}' class='quire-figure__media' src='{{ .map.media_id }}'></iframe>
|
|
284
|
-
{{ end }}
|
|
285
|
-
|
|
286
|
-
{{ else if (.site.Get "media_type") "website"}}
|
|
287
|
-
|
|
288
|
-
{{ if eq .site.Site.Params.epub true }}
|
|
289
|
-
<span class="fallback-image"><img src='{{ .site.Scratch.Get "imageDir" | relURL }}/icons/website.png'/></span>
|
|
290
|
-
{{ else }}
|
|
291
|
-
<iframe id='{{ .site.Get "id" }}' class='quire-figure__media' src='{{ .site.Get "media_id"}}'></iframe>
|
|
292
|
-
{{ end }}
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
{{ else }}
|
|
296
|
-
|
|
297
|
-
{{ if isset .map "src" }}
|
|
298
|
-
{{ if .map.src }}
|
|
299
|
-
<div class="quire-figure__wrapper">
|
|
300
|
-
<img src='{{ printf "%s/%s" (.site.Scratch.Get "imageDir") .map.src | relURL }}'/>
|
|
301
|
-
</div>
|
|
302
|
-
{{ end }}
|
|
303
|
-
|
|
304
|
-
{{ else if .site.Get "src" }}
|
|
305
|
-
<div class="quire-figure__wrapper">
|
|
306
|
-
<img src='{{ with .site.Get "src"}}{{ printf "%s/%s" (.site.Scratch.Get "imageDir") . | relURL }}{{ end }}' />
|
|
307
|
-
</div>
|
|
308
|
-
|
|
309
|
-
{{ else }}
|
|
310
|
-
|
|
311
|
-
<div class="placeholder">
|
|
312
|
-
{{ if isset .map "media_type" }}
|
|
313
|
-
<span class="fallback-image"><img src='{{ .site.Scratch.Get "imageDir" | relURL }}/icons/{{ .map.media_type }}.png'/></span>
|
|
314
|
-
{{ end }}
|
|
315
|
-
</div>
|
|
316
|
-
|
|
317
|
-
{{- end -}}
|
|
318
|
-
|
|
319
|
-
<h5 class="header">
|
|
320
|
-
{{ if .site.Get "title" }}
|
|
321
|
-
{{ .site.Get "title" | markdownify }}
|
|
322
|
-
{{ else if isset .map "title" }}
|
|
323
|
-
{{ if .map.title }}
|
|
324
|
-
{{ .map.title | markdownify }}
|
|
325
|
-
{{ end }}
|
|
326
|
-
{{ end }}
|
|
327
|
-
</h5>
|
|
328
|
-
|
|
329
|
-
{{ if isset .map "media_type" }}
|
|
330
|
-
|
|
331
|
-
<figcaption class="caption">
|
|
332
|
-
|
|
333
|
-
{{- if eq .map.media_type "youtube" }}
|
|
334
|
-
<a href='https://youtu.be/{{ .map.media_id }}' alt="" title="" target="_blank" ><em>https://youtu.be/{{ .map.media_id }}</em></a>
|
|
335
|
-
{{ end }}
|
|
336
|
-
{{- if eq .map.media_type "vimeo" }}
|
|
337
|
-
<a href='https://vimeo.com/{{ .map.media_id }}' alt="" title="" target="_blank" ><em>https://vimeo.com/{{ .map.media_id }}</em></a>
|
|
338
|
-
{{ end }}
|
|
339
|
-
{{- if eq .map.media_type "soundcloud" }}
|
|
340
|
-
<a href="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/{{ .map.media_id }}" alt="" title="" target="_blank" ><em>https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/{{ .map.media_id }}</em></a>
|
|
341
|
-
{{ end }}
|
|
342
|
-
|
|
343
|
-
{{ else }}
|
|
344
|
-
|
|
345
|
-
{{- if eq (.site.Get "media_type") "youtube" }}
|
|
346
|
-
<a href='https://youtu.be/{{ .site.Get.media_id }}' alt="" title="" target="_blank" ><em>https://youtu.be/{{ .site.Get "media_id" }}</em></a>
|
|
347
|
-
{{ end }}
|
|
348
|
-
{{- if eq (.site.Get "media_type") "vimeo" }}
|
|
349
|
-
<a href='https://vimeo.com/{{ .site.Get.media_id }}' alt="" title="" target="_blank" ><em>https://vimeo.com/{{ .site.Get "media_id" }}</em></a>
|
|
350
|
-
{{ end }}
|
|
351
|
-
{{- if eq (.site.Get "media_type") "soundcloud" }}
|
|
352
|
-
<a href="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/{{ .site.Get.media_id }}" alt="" title="" target="_blank" ><em>https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/{{ .site.Get "media_id" }}</em></a>
|
|
353
|
-
{{ end }}
|
|
354
|
-
|
|
355
|
-
</figcaption>
|
|
356
|
-
|
|
357
|
-
{{ end }}
|
|
358
|
-
|
|
359
|
-
{{- end -}}
|
|
360
|
-
|
|
361
|
-
{{ else if (.site.Get "media_type") }}
|
|
362
|
-
|
|
363
|
-
{{- if (.site.Get "media_type") "website" }}
|
|
364
|
-
|
|
365
|
-
{{ if eq .site.Site.Params.epub true }}
|
|
366
|
-
<span class="fallback-image"><img src='{{ .site.Scratch.Get "imageDir" | relURL }}/icons/website.png'/></span>
|
|
367
|
-
{{ else }}
|
|
368
|
-
<iframe id='{{ .site.Get "id" }}' class='quire-figure__media' src='{{ .site.Get "media_id"}}'></iframe>
|
|
369
|
-
{{ end }}
|
|
370
|
-
|
|
371
|
-
{{ else }}
|
|
372
|
-
|
|
373
|
-
{{ if isset .map "src" }}
|
|
374
|
-
|
|
375
|
-
{{ if .map.src }}
|
|
376
|
-
<div class="quire-figure__wrapper">
|
|
377
|
-
<img src='{{ printf "%s/%s" (.site.Scratch.Get "imageDir") .map.src | relURL }}' class='quire-figure__media'/>
|
|
378
|
-
</div>
|
|
379
|
-
{{ else }}
|
|
380
|
-
|
|
381
|
-
<div class="placeholder">
|
|
382
|
-
|
|
383
|
-
{{ if isset .map "media_type" }}
|
|
384
|
-
|
|
385
|
-
{{- if or (eq .map.media_type "youtube") (eq .map.media_type "vimeo") }}
|
|
386
|
-
<i class="material-icons md-24">videocam</i>
|
|
387
|
-
{{ end }}
|
|
388
|
-
{{- if or (eq .map.media_type "soundcloud") (eq .map.media_type "audio") }}
|
|
389
|
-
<i class="material-icons md-24 audio">headset</i>
|
|
390
|
-
{{ end }}
|
|
391
|
-
|
|
392
|
-
{{ else }}
|
|
393
|
-
|
|
394
|
-
{{- if or (eq (.site.Get "media_type") "youtube") (eq (.site.Get "media_type") "vimeo") }}
|
|
395
|
-
<i class="material-icons md-24">videocam</i>
|
|
396
|
-
{{ end }}
|
|
397
|
-
{{- if or (eq (.site.Get "media_type") "soundcloud") (eq (.site.Get "media_type") "audio") }}
|
|
398
|
-
<i class="material-icons md-24 audio">headset</i>
|
|
399
|
-
{{ end }}
|
|
400
|
-
|
|
401
|
-
{{ end }}
|
|
402
|
-
|
|
403
|
-
</div>
|
|
404
|
-
{{- end -}}
|
|
405
|
-
|
|
406
|
-
<h5 class="header">
|
|
407
|
-
{{ if .site.Get "title" }}
|
|
408
|
-
{{ .site.Get "title" | markdownify }}
|
|
409
|
-
{{ else if isset .map "title" }}
|
|
410
|
-
{{ if .map.title }}
|
|
411
|
-
{{ .map.title | markdownify }}
|
|
412
|
-
{{ end }}
|
|
413
|
-
{{ end }}
|
|
414
|
-
</h5>
|
|
415
|
-
|
|
416
|
-
{{ if isset .map "media_type" }}
|
|
417
|
-
|
|
418
|
-
<p class="caption">
|
|
419
|
-
|
|
420
|
-
{{- if eq .map.media_type "youtube" }}
|
|
421
|
-
<a href='https://youtu.be/{{ .map.media_id }}' alt="" title="" target="_blank" ><em>https://youtu.be/{{ .map.media_id }}</em></a>
|
|
422
|
-
{{ end }}
|
|
423
|
-
{{- if eq .map.media_type "vimeo" }}
|
|
424
|
-
<a href='https://vimeo.com/{{ .map.media_id }}' alt="" title="" target="_blank" ><em>https://vimeo.com/{{ .map.media_id }}</em></a>
|
|
425
|
-
{{ end }}
|
|
426
|
-
{{- if eq .map.media_type "soundcloud" }}
|
|
427
|
-
<a href="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/{{ .map.media_id }}" alt="" title="" target="_blank" ><em>https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/{{ .map.media_id }}</em></a>
|
|
428
|
-
{{ end }}
|
|
429
|
-
|
|
430
|
-
{{ else }}
|
|
431
|
-
|
|
432
|
-
{{- if eq (.site.Get "media_type") "youtube" }}
|
|
433
|
-
<a href='https://youtu.be/{{ .site.Get.media_id }}' alt="" title="" target="_blank" ><em>https://youtu.be/{{ .site.Get "media_id" }}</em></a></p>
|
|
434
|
-
{{ end }}
|
|
435
|
-
{{- if eq (.site.Get "media_type") "vimeo" }}
|
|
436
|
-
<a href='https://vimeo.com/{{ .site.Get.media_id }}' alt="" title="" target="_blank" ><em>https://vimeo.com/{{ .site.Get "media_id" }}</em></a></p>
|
|
437
|
-
{{ end }}
|
|
438
|
-
{{- if eq (.site.Get "media_type") "soundcloud" }}
|
|
439
|
-
<a href="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/{{ .site.Get.media_id }}" alt="" title="" target="_blank" ><em>https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/{{ .site.Get "media_id" }}</em></a>
|
|
440
|
-
{{ end }}
|
|
441
|
-
|
|
442
|
-
</p>
|
|
443
|
-
|
|
444
|
-
{{ end }}
|
|
445
|
-
|
|
446
|
-
{{ end }}
|
|
447
|
-
|
|
448
|
-
{{- end -}}
|
|
449
|
-
|
|
450
|
-
{{ end }}
|
|
451
|
-
|
|
452
|
-
{{ end }}
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
{{/* -------------------- END FALL BACK BLOCK -------------------- */}}
|
|
456
|
-
|
|
457
|
-
{{ end }}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
{{- $alt := "" -}}
|
|
2
|
-
{{- $aspectRatio := "" -}}
|
|
3
|
-
{{- $caption := "" -}}
|
|
4
|
-
{{- $credit := "" -}}
|
|
5
|
-
{{- $download := "" -}}
|
|
6
|
-
{{- $id := "" -}}
|
|
7
|
-
{{- $label := "" -}}
|
|
8
|
-
{{- $mediaId := "" -}}
|
|
9
|
-
{{- $mediaType := "" -}}
|
|
10
|
-
{{- $src := "" -}}
|
|
11
|
-
|
|
12
|
-
{{- if .Get "src" -}}
|
|
13
|
-
|
|
14
|
-
{{- with (.Get "alt") }}{{ $alt = . }}{{ end -}}
|
|
15
|
-
{{- with (.Get "aspect_ratio") }}{{ $aspectRatio = . }}{{ end -}}
|
|
16
|
-
{{- with (.Get "caption") }}{{ $caption = . }}{{ end -}}
|
|
17
|
-
{{- with (.Get "credit") }}{{ $credit = . }}{{ end -}}
|
|
18
|
-
{{- with (.Get "download") }}{{ $download = . }}{{ end -}}
|
|
19
|
-
{{- with (.Get "id") }}{{ $id = . }}{{ end -}}
|
|
20
|
-
{{- with (.Get "label") }}{{ $label = . }}{{ end -}}
|
|
21
|
-
{{- with (.Get "media_id") }}{{ $mediaId = . }}{{ end -}}
|
|
22
|
-
{{- with (.Get "media_type") }}{{ $mediaType = . }}{{ end -}}
|
|
23
|
-
{{- with (.Get "src") }}{{ $src = . }}{{ end -}}
|
|
24
|
-
|
|
25
|
-
{{- else if .Get "id" -}}
|
|
26
|
-
|
|
27
|
-
{{- range where .Site.Data.figures.figure_list "id" "eq" (.Get "id") -}}
|
|
28
|
-
|
|
29
|
-
{{- if ($.Get "alt") }}{{ $alt = ($.Get "alt") }}{{ else if .alt }}{{ $alt = .alt }}{{ end -}}
|
|
30
|
-
{{- with .aspect_ratio }}{{ $aspectRatio = . }}{{ end -}}
|
|
31
|
-
{{- if ($.Get "caption") }}{{ $caption = ($.Get "caption") }}{{ else if .caption }}{{ $caption = .caption }}{{ end -}}
|
|
32
|
-
{{- if ($.Get "credit") }}{{ $credit = ($.Get "credit") }}{{ else if .credit }}{{ $credit = .credit }}{{ end -}}
|
|
33
|
-
{{- with .download }}{{ $download = . }}{{ end -}}
|
|
34
|
-
{{- with .id }}{{ $id = . }}{{ end -}}
|
|
35
|
-
{{- if ($.Get "label") }}{{ $label = ($.Get "label") }}{{ else if .label }}{{ $label = .label }}{{ end -}}
|
|
36
|
-
{{- with .media_id }}{{ $mediaId = . }}{{ end -}}
|
|
37
|
-
{{- with .media_type }}{{ $mediaType = . }}{{ end -}}
|
|
38
|
-
{{- with .src }}{{ $src = . }}{{ end -}}
|
|
39
|
-
|
|
40
|
-
{{- end -}}
|
|
41
|
-
|
|
42
|
-
{{- else -}}
|
|
43
|
-
|
|
44
|
-
{{- end -}}
|
|
45
|
-
|
|
46
|
-
{{- $dict := dict "Site" .Site "alt" $alt "aspectRatio" $aspectRatio "caption" $caption "credit" $credit "download" $download "id" $id "label" $label "mediaId" $mediaId "mediaType" $mediaType "src" $src -}}
|
|
47
|
-
|
|
48
|
-
<figure data="q-figure"
|
|
49
|
-
class="quire-figure{{ with .Get "class" }} {{ . }}{{ end }}"
|
|
50
|
-
id="{{ $id }}">
|
|
51
|
-
<div class="q-figure__wrapper">
|
|
52
|
-
|
|
53
|
-
{{ if eq $mediaType "youtube" -}}
|
|
54
|
-
{{- partial "figure-youtube.html" $dict -}}
|
|
55
|
-
{{- else if eq $mediaType "vimeo" -}}
|
|
56
|
-
{{- partial "figure-vimeo.html" $dict -}}
|
|
57
|
-
{{- else if eq $mediaType "soundcloud" -}}
|
|
58
|
-
{{- partial "figure-soundcloud.html" $dict -}}
|
|
59
|
-
{{- else if eq $mediaType "website" -}}
|
|
60
|
-
{{- partial "figure-website.html" $dict -}}
|
|
61
|
-
{{- else if eq $mediaType "table" -}}
|
|
62
|
-
{{- partial "figure-table.html" $dict -}}
|
|
63
|
-
{{- else -}}
|
|
64
|
-
{{- partial "figure-image.html" $dict -}}
|
|
65
|
-
{{- end -}}
|
|
66
|
-
|
|
67
|
-
{{- partial "figure-caption.html" $dict -}}
|
|
68
|
-
|
|
69
|
-
</div>
|
|
70
|
-
</figure>
|