@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,327 @@
|
|
|
1
|
+
{{/*
|
|
2
|
+
|
|
3
|
+
The q-contributor shortcode can be used to create a page of contributor
|
|
4
|
+
biographies, a section of bios for a single page, a list of contributors,
|
|
5
|
+
or a byline for a particular page.
|
|
6
|
+
|
|
7
|
+
This shortcode requires both a "range" and a "format" value. An optional
|
|
8
|
+
"align" value can also be used for all formats except "bio", on which it
|
|
9
|
+
has no effect.
|
|
10
|
+
|
|
11
|
+
range "page", "all", or an abritray value matching a contributor
|
|
12
|
+
`type` such as "primary" or "secondary"
|
|
13
|
+
format "initials", "name", "name-title", "name-title-block", "bio"
|
|
14
|
+
align "left" (default), "center", "right"
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
"initials" Looks for the capital letters in a contributor first
|
|
18
|
+
and last name and concatenates them together. Jane
|
|
19
|
+
Pauley, becomes J.P. Ralph Waldo Emerson becomes R.W.E.
|
|
20
|
+
"name" Just the first and last name.
|
|
21
|
+
"name-title" The first and last name, with, when available, their title
|
|
22
|
+
and affiliation.
|
|
23
|
+
"name-title-block" As above but with the title and affiliation on new lines
|
|
24
|
+
below the name.
|
|
25
|
+
"bio" Name, with pic, url, and bio.
|
|
26
|
+
|
|
27
|
+
Following the standard error message checks, in the first part of the
|
|
28
|
+
template below, creates a list of the requested contributors using the
|
|
29
|
+
contirbutor-info.html partial, creating a sorted list of contributor names
|
|
30
|
+
and information: a "contributorlist" map.
|
|
31
|
+
|
|
32
|
+
The second half of the template takes the "contributorlist" map and ranges
|
|
33
|
+
across it building the HTML as called for in the format value ("initials",
|
|
34
|
+
"name", "name_plus", or "bio").
|
|
35
|
+
|
|
36
|
+
NOTES:
|
|
37
|
+
|
|
38
|
+
Users can use a file_as value to control sort order. Otherwise lists are
|
|
39
|
+
sorted alphabetically by last_name. If you wanted, for example, a list of
|
|
40
|
+
essay contributors ordered in the way they are ordered in the page yaml, you
|
|
41
|
+
could assign a numeric file_as value to each. 1, 2, 3 etc. Note though that
|
|
42
|
+
this file_as override will cary over to other uses of the shortcode. For
|
|
43
|
+
example, a complete list of contributors at the end of a volume of collected
|
|
44
|
+
papers.
|
|
45
|
+
|
|
46
|
+
Contributors with the same exact name will override eachother. But using
|
|
47
|
+
a file_as value would fix this, and that value wouldn't show up in the
|
|
48
|
+
interface. For example if there are two Jane Smiths, assigning a file_as
|
|
49
|
+
value of "Smith, Jane 1" to one and "Smith, Jane 2" will sort them in that
|
|
50
|
+
order, but there names would still be listed as Jane Smith.
|
|
51
|
+
|
|
52
|
+
*/}}
|
|
53
|
+
|
|
54
|
+
{{/* Error messages */}}
|
|
55
|
+
{{/* ---------------------------------------------------------------------- */}}
|
|
56
|
+
{{ $errorRange := dict "shortcode" "q-contributor" "message" "This shortcode must include a value for `range`, and the supplied value for `range` may be “all”, “page”, or a specific contributor `type` such as “primary” ." "example" "{{< q-contributor range="all" format="bio" >}}" }}
|
|
57
|
+
|
|
58
|
+
{{ $errorFormat := dict "shortcode" "q-contributor" "message" "This shortcode must include a value for `format`, and the supplied value for `format` must be “initials”, “name”, “name-title”, “name-title-block”, or “bio”." "example" "{{< q-contributor range="all" format="bio" >}}" }}
|
|
59
|
+
|
|
60
|
+
{{ $errorUpdate := dict "shortcode" "q-contributor" "message" "THIS SHORTCODE HAS BEEN UPDATED. Rather than using `type` please specify a `format`. The values that can be supplied as a `format` remain the same as they were for `type`: “initials”, “name”, “name-title”, “name-title-block”, or “bio”." "example" "{{< q-contributor range="all" format="bio" >}}" }}
|
|
61
|
+
|
|
62
|
+
{{/* Image directory */}}
|
|
63
|
+
{{/* ---------------------------------------------------------------------- */}}
|
|
64
|
+
{{ if isset $.Site.Params "imagedir" }}
|
|
65
|
+
{{ $.Scratch.Set "imageDir" $.Site.Params.imageDir }}
|
|
66
|
+
{{ else }}
|
|
67
|
+
{{ $.Scratch.Set "imageDir" "" }}
|
|
68
|
+
{{ end }}
|
|
69
|
+
|
|
70
|
+
{{/* Clear previous usage */}}
|
|
71
|
+
{{/* ---------------------------------------------------------------------- */}}
|
|
72
|
+
{{ if ne ($.Page.Scratch.Get "contributorList") "" }}
|
|
73
|
+
{{ $.Page.Scratch.Delete "contributorlist" }}
|
|
74
|
+
{{ end }}
|
|
75
|
+
|
|
76
|
+
{{/* Contributor range variables */}}
|
|
77
|
+
{{/* ---------------------------------------------------------------------- */}}
|
|
78
|
+
{{ $listRange := $.Get "range" }}
|
|
79
|
+
|
|
80
|
+
{{ if eq ($.Get "range") "" }}
|
|
81
|
+
{{- partial "error-message.html" $errorRange -}}
|
|
82
|
+
{{ end }}
|
|
83
|
+
|
|
84
|
+
{{ $rangeAll := .Site.Pages }}
|
|
85
|
+
{{ $rangePage := (where .Site.Pages "File.UniqueID" .Page.File.UniqueID) }}
|
|
86
|
+
{{ $rangeType := (where .Site.Data.publication.contributor "type" $listRange) }}
|
|
87
|
+
|
|
88
|
+
{{- if eq $listRange "all" -}}
|
|
89
|
+
{{- $.Scratch.Add "range" $rangeAll -}}
|
|
90
|
+
{{- else if eq $listRange "page" -}}
|
|
91
|
+
{{- $.Scratch.Add "range" $rangePage -}}
|
|
92
|
+
{{- else -}}
|
|
93
|
+
{{- $.Scratch.Add "range" $rangeType -}}
|
|
94
|
+
{{- end -}}
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
{{/* Contributor info */}}
|
|
98
|
+
{{/* ---------------------------------------------------------------------- */}}
|
|
99
|
+
{{/* ---------------------------------------------------------------------- */}}
|
|
100
|
+
|
|
101
|
+
{{/* Assign single page of contributors */}}
|
|
102
|
+
{{/* ---------------------------------------------------------------------- */}}
|
|
103
|
+
{{- if eq $listRange "page" -}}
|
|
104
|
+
{{- $.Scratch.Add "pageRange" (where .Site.Pages "File.UniqueID" .Page.File.UniqueID) -}}
|
|
105
|
+
|
|
106
|
+
{{/* Assign all pages of contributors */}}
|
|
107
|
+
{{/* ---------------------------------------------------------------------- */}}
|
|
108
|
+
{{- else -}}
|
|
109
|
+
{{- $.Scratch.Add "pageRange" .Site.Pages -}}
|
|
110
|
+
|
|
111
|
+
{{/* Also get all contributors listed in publication.yml */}}
|
|
112
|
+
{{/* -------------------------------------------------------------------- */}}
|
|
113
|
+
{{- range .Site.Data.publication.contributor -}}
|
|
114
|
+
{{ if eq ($.Get "range") "all" }}
|
|
115
|
+
{{ partial "contributor-info.html" (dict "Page" $.Page "contributor" . ) }}
|
|
116
|
+
{{- else -}}
|
|
117
|
+
{{ if eq .type ($.Get "range") }}
|
|
118
|
+
{{ partial "contributor-info.html" (dict "Page" $.Page "contributor" . ) }}
|
|
119
|
+
{{- end -}}
|
|
120
|
+
{{- end -}}
|
|
121
|
+
{{- end -}}
|
|
122
|
+
|
|
123
|
+
{{- end -}}
|
|
124
|
+
|
|
125
|
+
{{/* Range through assigned pages */}}
|
|
126
|
+
{{/* ---------------------------------------------------------------------- */}}
|
|
127
|
+
{{- range ($.Scratch.Get "pageRange") -}}
|
|
128
|
+
|
|
129
|
+
{{- range $index, $element := .Params.contributor -}}
|
|
130
|
+
|
|
131
|
+
{{/* Page contributors listed in page YAML with an ID */}}
|
|
132
|
+
{{/* ------------------------------------------------------------------ */}}
|
|
133
|
+
{{ if .id }}
|
|
134
|
+
{{ range where $.Site.Data.publication.contributor "id" .id }}
|
|
135
|
+
{{/* Get all contributors on the page */}}
|
|
136
|
+
{{/* -------------------------------------------------------------- */}}
|
|
137
|
+
{{ if eq ($.Get "range") "page" }}
|
|
138
|
+
{{ partial "contributor-info.html" (dict "Page" $.Page "contributor" . "index" (string $index)) }}
|
|
139
|
+
{{ else if eq ($.Get "range") "all" }}
|
|
140
|
+
{{ partial "contributor-info.html" (dict "Page" $.Page "contributor" . ) }}
|
|
141
|
+
{{- else -}}
|
|
142
|
+
{{/* Or, match contributors of desired type */}}
|
|
143
|
+
{{/* ------------------------------------------------------------ */}}
|
|
144
|
+
{{ if eq .type ($.Get "range") }}
|
|
145
|
+
{{ partial "contributor-info.html" (dict "Page" $.Page "contributor" . ) }}
|
|
146
|
+
{{- end -}}
|
|
147
|
+
{{- end -}}
|
|
148
|
+
{{- end -}}
|
|
149
|
+
|
|
150
|
+
{{/* Page contributors listed in page YAML */}}
|
|
151
|
+
{{/* ------------------------------------------------------------------ */}}
|
|
152
|
+
{{- else -}}
|
|
153
|
+
{{/* Get all contributors on the page */}}
|
|
154
|
+
{{/* ---------------------------------------------------------------- */}}
|
|
155
|
+
{{ if eq ($.Get "range") "page" }}
|
|
156
|
+
{{ partial "contributor-info.html" (dict "Page" $.Page "contributor" . "index" (string $index)) }}
|
|
157
|
+
{{ else if eq ($.Get "range") "all" }}
|
|
158
|
+
{{ partial "contributor-info.html" (dict "Page" $.Page "contributor" . ) }}
|
|
159
|
+
{{- else -}}
|
|
160
|
+
{{/* Or, match contributors of desired type */}}
|
|
161
|
+
{{/* -------------------------------------------------------------- */}}
|
|
162
|
+
{{ if eq .type ($.Get "range") }}
|
|
163
|
+
{{ partial "contributor-info.html" (dict "Page" $.Page "contributor" . ) }}
|
|
164
|
+
{{- end -}}
|
|
165
|
+
{{- end -}}
|
|
166
|
+
{{- end -}}
|
|
167
|
+
|
|
168
|
+
{{- end -}}
|
|
169
|
+
|
|
170
|
+
{{- end -}}
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
{{/* List variables */}}
|
|
174
|
+
{{/* ---------------------------------------------------------------------- */}}
|
|
175
|
+
{{ $listFormat := $.Get "format" }}
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
{{/* List layout: Bio */}}
|
|
180
|
+
{{/* ---------------------------------------------------------------------- */}}
|
|
181
|
+
{{- if eq $listFormat "bio" -}}
|
|
182
|
+
<ul class="quire-contributors-list {{ $listFormat }}">
|
|
183
|
+
{{- range ($.Page.Scratch.GetSortedMapValues "contributorlist") -}}
|
|
184
|
+
{{- $nameid := anchorize (index . 0) -}}
|
|
185
|
+
|
|
186
|
+
<li class="quire-contributor" id="{{ $nameid }}">
|
|
187
|
+
<div class="title is-5"><span class="quire-contributor__name">{{ (index . 0) }}</span>
|
|
188
|
+
{{ if ne (index . 4) "n/a" }}
|
|
189
|
+
<a href="{{ index . 4 | relURL }}" class="quire-contributor__url" target="_blank">
|
|
190
|
+
{{- partial "icon.html" (dict "type" "link" "description" "") -}}</a>
|
|
191
|
+
{{- end -}}
|
|
192
|
+
</div>
|
|
193
|
+
|
|
194
|
+
<div class="media">
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
<div class="quire-contributor__details media-content">
|
|
198
|
+
|
|
199
|
+
{{- if ne (index . 5) "n/a" -}}
|
|
200
|
+
<div class="media-left">
|
|
201
|
+
<img class="image quire-contributor__pic"
|
|
202
|
+
src='{{ with index . 5 }}{{ printf "%s/%s" ($.Scratch.Get "imageDir") . | relURL }}{{ end }}'
|
|
203
|
+
alt="Picture of {{ index . 0 }}"/>
|
|
204
|
+
</div>
|
|
205
|
+
{{- end -}}
|
|
206
|
+
<div class="quire-contributor__bio">
|
|
207
|
+
{{ if ne (index . 3) "n/a" }}{{ markdownify (index . 3) }}{{ end }}
|
|
208
|
+
</div>
|
|
209
|
+
|
|
210
|
+
{{ if ne $listRange "page" }}
|
|
211
|
+
|
|
212
|
+
{{ range $.Site.Pages }}
|
|
213
|
+
{{- $pagelabel := .Params.label -}}
|
|
214
|
+
{{- $labeldivider := $.Site.Params.pageLabelDivider -}}
|
|
215
|
+
{{- $pagetitle := .Params.title -}}
|
|
216
|
+
{{- $pagesubtitle := .Params.subtitle -}}
|
|
217
|
+
{{- $pagelink := .Permalink -}}
|
|
218
|
+
|
|
219
|
+
{{ range .Params.contributor }}
|
|
220
|
+
{{- if .id -}}
|
|
221
|
+
{{ range where $.Site.Data.publication.contributor "id" .id }}
|
|
222
|
+
{{ template "contribution" (dict "page" $.Page "person" . "nameId" $nameid "pageLabel" $pagelabel "labelDivider" $labeldivider "pageTitle" $pagetitle "pageSubtitle" $pagesubtitle "pageLink" $pagelink) }}
|
|
223
|
+
{{- end -}}
|
|
224
|
+
{{- else -}}
|
|
225
|
+
{{ template "contribution" (dict "page" $.Page "person" . "nameId" $nameid "pageLabel" $pagelabel "labelDivider" $labeldivider "pageTitle" $pagetitle "pageSubtitle" $pagesubtitle "pageLink" $pagelink) }}
|
|
226
|
+
{{- end -}}
|
|
227
|
+
{{- end -}}
|
|
228
|
+
|
|
229
|
+
{{- end -}}
|
|
230
|
+
|
|
231
|
+
{{- end -}}
|
|
232
|
+
</div>
|
|
233
|
+
</div>
|
|
234
|
+
</li>
|
|
235
|
+
{{- end -}}
|
|
236
|
+
</ul>
|
|
237
|
+
|
|
238
|
+
{{/* List layout: Name, name-title */}}
|
|
239
|
+
{{/* ---------------------------------------------------------------------- */}}
|
|
240
|
+
{{- else if or (or (eq $listFormat "name") (eq $listFormat "name-title")) (eq $listFormat "name-title-block") -}}
|
|
241
|
+
<ul class="quire-contributors-list {{ $listFormat }} {{ with ($.Get "align") }}align-{{ . }}{{ end }}">
|
|
242
|
+
{{- range ($.Page.Scratch.GetSortedMapValues "contributorlist") -}}
|
|
243
|
+
{{- $nameid := anchorize (index . 0) -}}
|
|
244
|
+
<li class="quire-contributor" id="{{ $nameid }}">
|
|
245
|
+
<span class="quire-contributor__name">{{ index . 0 }}</span>
|
|
246
|
+
{{- if or (eq ($.Get "format") "name-title") (eq ($.Get "format") "name-title-block") -}}
|
|
247
|
+
|
|
248
|
+
{{- if ne ($.Get "format") "name-title-block" -}}
|
|
249
|
+
{{- if or (ne (index . 1) "n/a") (ne (index . 2) "n/a") }}, {{ end -}}
|
|
250
|
+
{{- end -}}
|
|
251
|
+
|
|
252
|
+
{{- if ne (index . 1) "n/a" -}}
|
|
253
|
+
<span class="quire-contributor__title">{{ index . 1 }}</span>
|
|
254
|
+
{{- end -}}
|
|
255
|
+
|
|
256
|
+
{{- if ne ($.Get "format") "name-title-block" -}}
|
|
257
|
+
{{- if and (ne (index . 1) "n/a") (ne (index . 2) "n/a") }}, {{ end -}}
|
|
258
|
+
{{- end -}}
|
|
259
|
+
|
|
260
|
+
{{- if ne (index . 2) "n/a" -}}
|
|
261
|
+
<span class="quire-contributor__affiliation">{{ index . 2 }}</span>
|
|
262
|
+
{{- end -}}
|
|
263
|
+
{{- end -}}
|
|
264
|
+
</li>
|
|
265
|
+
{{- end -}}
|
|
266
|
+
</ul>
|
|
267
|
+
|
|
268
|
+
{{/* List layout: Initials */}}
|
|
269
|
+
{{/* ---------------------------------------------------------------------- */}}
|
|
270
|
+
{{- else if eq $listFormat "initials" -}}
|
|
271
|
+
<ul class="quire-contributors-list {{ $listFormat }} {{ with ($.Get "align") }}align-{{ . }}{{ end }}">
|
|
272
|
+
{{- if ($.Page.Scratch.GetSortedMapValues "contributorlist") -}}
|
|
273
|
+
{{- $len := len ($.Page.Scratch.GetSortedMapValues "contributorlist") -}}
|
|
274
|
+
{{- if gt $len 0 -}}
|
|
275
|
+
|
|
276
|
+
{{- $len := len ($.Page.Scratch.GetSortedMapValues "contributorlist") -}}
|
|
277
|
+
{{- range $index, $element := ($.Page.Scratch.GetSortedMapValues "contributorlist") -}}
|
|
278
|
+
{{- $initials := findRE "[[:upper:]]" (index . 0) -}}
|
|
279
|
+
{{- if eq $len 1 -}}
|
|
280
|
+
<li class="quire-contributor__name">{{ range $initials }}{{ . }}.{{ end }}</li>
|
|
281
|
+
{{- else if eq (add $index 1) $len -}}
|
|
282
|
+
<li class="quire-contributor__name"> and {{ range $initials }}{{ . }}.{{ end }}</li>
|
|
283
|
+
{{- else -}}
|
|
284
|
+
{{- if eq $len 2 -}}
|
|
285
|
+
<li class="quire-contributor__name">{{ range $initials }}{{ . }}.{{ end }} </li>
|
|
286
|
+
{{- else -}}
|
|
287
|
+
<li class="quire-contributor__name">{{ range $initials }}{{ . }}.{{ end }}, </li>
|
|
288
|
+
{{- end -}}
|
|
289
|
+
{{- end -}}
|
|
290
|
+
{{- end -}}
|
|
291
|
+
|
|
292
|
+
{{- end -}}
|
|
293
|
+
{{- end -}}
|
|
294
|
+
</ul>
|
|
295
|
+
{{- else if and (eq $listFormat "") (ne ($.Get "type") "") }}
|
|
296
|
+
|
|
297
|
+
{{- partial "error-message.html" $errorUpdate -}}
|
|
298
|
+
|
|
299
|
+
{{- else -}}
|
|
300
|
+
|
|
301
|
+
{{- partial "error-message.html" $errorFormat -}}
|
|
302
|
+
|
|
303
|
+
{{- end -}}
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
{{ define "contribution" }}
|
|
307
|
+
|
|
308
|
+
{{- if .person.full_name }}
|
|
309
|
+
{{ $name := .person.full_name }}
|
|
310
|
+
{{ .page.Scratch.Set "name" $name }}
|
|
311
|
+
{{ else if and .person.first_name .person.last_name }}
|
|
312
|
+
{{ $name := add (add .person.first_name " ") .person.last_name }}
|
|
313
|
+
{{ .page.Scratch.Set "name" $name }}
|
|
314
|
+
{{- end -}}
|
|
315
|
+
{{- $checkid := anchorize (.page.Scratch.Get "name") -}}
|
|
316
|
+
{{ if eq $checkid .nameId }}
|
|
317
|
+
<p class="quire-contributor__page-link">
|
|
318
|
+
<a href="{{ .pageLink | relURL }}">
|
|
319
|
+
{{ $pagetitle := .pageTitle }}
|
|
320
|
+
{{ if .pageLabel }}{{ .pageLabel }}{{ .labelDivider }}{{ end }}
|
|
321
|
+
{{ markdownify $pagetitle }}{{ with .pageSubtitle }}{{- $endPunctuation := findRE "[!|?]$" $pagetitle -}}{{ if $endPunctuation }} {{ else }}: {{ end }}{{ markdownify . }}{{ end }}
|
|
322
|
+
</a>
|
|
323
|
+
</p>
|
|
324
|
+
{{- end -}}
|
|
325
|
+
{{ .page.Scratch.Delete "name" }}
|
|
326
|
+
|
|
327
|
+
{{ end }}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{{/*
|
|
2
|
+
|
|
3
|
+
The `q-contributors` shortcode has been deprecated in favor of `q-contributor`
|
|
4
|
+
|
|
5
|
+
*/}}
|
|
6
|
+
|
|
7
|
+
{{/* Error messages */}}
|
|
8
|
+
{{/* ---------------------------------------------------------------------- */}}
|
|
9
|
+
{{ $errorNewShortcode := dict "shortcode" "q-contributor" "message" "THIS SHORTCODE HAS BEEN UPDATED. Instead of `q-contributors` (plural), it is now called with `q-contributor` (singular)." "example" "{{< q-contributor range="all" format="bio" >}}" }}
|
|
10
|
+
|
|
11
|
+
{{- partial "error-message.html" $errorNewShortcode -}}
|