@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,73 @@
|
|
|
1
|
+
# Quire Starter Theme Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to the `quire-starter-theme` will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Better Chicago/MLA citation handling for different numbers of authors and editors, as well as series titles and numbers
|
|
13
|
+
- Progress bar height variable, default is 2px
|
|
14
|
+
- Better default layouts for cover and splash pages without content
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- The active page is now marked in the menu with an "active" class at build time, rather than client-side with JS
|
|
19
|
+
- Hide navbar page labels on mobile
|
|
20
|
+
- Made entry image shorter on mobile to increase target area for scrolling page
|
|
21
|
+
- Citation URLs now specified in publication.yml with fallback to baseURL
|
|
22
|
+
- Bibliography heading specified in config.yml rather thank being hard-coded in
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- Erroneous closing of figure modal
|
|
27
|
+
- Bad scroll positions on some anchor links
|
|
28
|
+
- Display of contributors in sidebar menu
|
|
29
|
+
- Bad variable for tracking "page one" of publication
|
|
30
|
+
- Spacing on page classes
|
|
31
|
+
- Anchorizing of element IDs for contributors
|
|
32
|
+
- Icon styling for citationPopupStyle: icon
|
|
33
|
+
- Plate images, captions and grid page number positioning in pdf
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## [0.18.0] - 2020-02-03
|
|
37
|
+
### Added
|
|
38
|
+
+ Cypress testing suite
|
|
39
|
+
+ CircleCI configuration to run Cypress Tests automatically on each pull request
|
|
40
|
+
+ Tests for all major JS functions and elements
|
|
41
|
+
|
|
42
|
+
### Changed
|
|
43
|
+
* Handling of references for bibliographies. Now use `id` instead of `short`.
|
|
44
|
+
|
|
45
|
+
### Fixed
|
|
46
|
+
* search.html to fix ref warning
|
|
47
|
+
+ relURL to href and src
|
|
48
|
+
* JS bug fixes
|
|
49
|
+
- Removed use of deprecated Hugo variables in templates
|
|
50
|
+
* logic in footer buttons and home page link
|
|
51
|
+
|
|
52
|
+
### Security
|
|
53
|
+
* Updated NodeJS/NPM dependencies
|
|
54
|
+
|
|
55
|
+
## [0.17.0] - 2019-08-01
|
|
56
|
+
### Added
|
|
57
|
+
+ Support for tabled figures
|
|
58
|
+
+ Option to add in custom JavaScript
|
|
59
|
+
|
|
60
|
+
### Changed
|
|
61
|
+
+ Improved q-contributor shortcode
|
|
62
|
+
+ Improved display of citations from the q-cite shortcode
|
|
63
|
+
+ Improvements to page layouts online and in pdf
|
|
64
|
+
|
|
65
|
+
### Fixed
|
|
66
|
+
+ Displays image tools and information in fullscreen mode
|
|
67
|
+
|
|
68
|
+
### Security
|
|
69
|
+
* Updated NodeJS/NPM dependencies
|
|
70
|
+
|
|
71
|
+
[Unreleased]: https://github.com/gettypubs/quire-starter-theme/compare/v0.18.0...HEAD
|
|
72
|
+
[0.18.0]: https://github.com/gettypubs/quire-starter-theme/compare/v0.17.0...v0.18.0
|
|
73
|
+
[0.17.0]: https://github.com/gettypubs/quire-starter-theme/releases/tag/v0.17.0
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017 YOUR_NAME_HERE
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
the Software without restriction, including without limitation the rights to
|
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
+
subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# Quire
|
|
2
|
+
|
|
3
|
+
Developed by Getty, Quire is a new, multiformat publishing tool available for immediate access and use. Quire is in a limited beta, © J. Paul Getty Trust, and not yet released as open-source software. For a free license to use Quire, please complete [this form](https://docs.google.com/forms/d/e/1FAIpQLScKOJEq9ivhwizmdazjuhxBII-s-5SUsnerWmyF8VteeeRBhA/viewform).
|
|
4
|
+
|
|
5
|
+
For information on **installing, updating, and uninstalling Quire (macOS + Windows) and Quire commands** please refer to the [Quire documentation](https://quire.getty.edu/documentation/install-uninstall/).
|
|
6
|
+
|
|
7
|
+
## Quire Default Theme
|
|
8
|
+
|
|
9
|
+
This default theme is a full-featured theme designed to showcase and make use of Quire’s core features out of the box, and is included by default when starting a new Quire project with the `quire new` command. The default theme includes support for a variety of page types: page, contents, cover, essay, entry, and splash. Also included are two sub-themes, "modern" (first three screenshots below) and "classic" (second three screenshots below), which can be controlled with the `$theme` variable as documented below.
|
|
10
|
+
|
|
11
|
+

|
|
12
|
+
|
|
13
|
+

|
|
14
|
+
|
|
15
|
+

|
|
16
|
+
|
|
17
|
+

|
|
18
|
+
|
|
19
|
+

|
|
20
|
+
|
|
21
|
+

|
|
22
|
+
|
|
23
|
+
## Defined Variables
|
|
24
|
+
|
|
25
|
+
This default theme includes a number of style variables intended to allow for relatively easy customization without having to dig into the stylesheets and CSS markup. They are explained below and can be found and changed in `/source/css/variables.scss` file. Take special note of thee `$theme` variable which can be set to "modern" or "classic", and the `$accent-color` variable which will give your publication a distinct feel in coloring all links, buttons and other navigation elements.
|
|
26
|
+
|
|
27
|
+
| Variable Type | Variable | Expected Value | Description |
|
|
28
|
+
| ------------- | -------- | -------------- | ----------- |
|
|
29
|
+
| Primary | $accent-color | color value | The color of buttons, links and navigation elements |
|
|
30
|
+
| | $content-background-color | color value | Main text area background color |
|
|
31
|
+
| | $secondary-background-color | color value | Additional background color, only for modern version of the theme |
|
|
32
|
+
| | $theme | "modern", "classic" | Shifts the overall feel and typography of the publication |
|
|
33
|
+
| | $navbar | "normal", "accent" | Predefined options for your navbar, white or the accent color |
|
|
34
|
+
| Page typography | $quire-base-font-size | unit value | 16px default |
|
|
35
|
+
| | $quire-page-paragraph-style | "line-space", "indent" | Paragraph display styles, either a line space and no indent, or an indent and no line space |
|
|
36
|
+
| Cover typography | $quire-cover-text-color | color value | |
|
|
37
|
+
| | $quire-cover-text-scale | integer | Use decimal numbers such as .8 or 1.3 to shift the text larger or smaller |
|
|
38
|
+
| Menu colors | $quire-menu-color | color value | |
|
|
39
|
+
| | $quire-menu-text-color | color value | |
|
|
40
|
+
| Image viewer colors (pop-up figure viewer & entry page viewer) | $quire-entry-image-color | color value | The background of the image viewer on entry pages |
|
|
41
|
+
| | $quire-entry-image-icons-color | color value | |
|
|
42
|
+
| Highlight color | $quire-hover-color | color value | Used on active links and when hovering over table rows |
|
|
43
|
+
| Print/PDF output | $print-width | unit value | 8.5in default|
|
|
44
|
+
| | $print-height | unit value | 11in default |
|
|
45
|
+
| | $print-bleed | unit value | .125in default |
|
|
46
|
+
| | $print-base-font-size | unit value | 8.5pt default |
|
|
47
|
+
| | $print-text-color | color value | Specifying a plain black will avoid excessive color printing costs |
|
|
48
|
+
| | $print-splash-color | color value | Background color for full-bleed splash pages |
|
|
49
|
+
| | $print-entry-image-color | color value | Background color for full-bleed image pages |
|
|
50
|
+
| | $print-entry-image-display | "all", "first" | Output "all" the images associated with an object on an entry page, or only the "first", main image |
|
|
51
|
+
| Fonts | $quire-primary-font | font name | This theme includes three embedded, open license fonts, (Noto Sans, Noto Serif, and IBM Plex Sans Condensed) and also uses the widely available Times. While other fonts can be specified for use, do so with caution and line spacing, element width and margin can all shift from font to font. |
|
|
52
|
+
| | $quire-headings-font | font name | See above |
|
|
53
|
+
| | $quire-footnotes-font | font name | See above |
|
|
54
|
+
| | $quire-navigation-font | font name | See above |
|
|
55
|
+
| Navbar | $quire-navbar-color | color value | |
|
|
56
|
+
| | $quire-navbar-hover-color | color value | |
|
|
57
|
+
| | $quire-navbar-text-color | color value | |
|
|
58
|
+
| Cover colors | $quire-cover-color-1 | color value | The cover includes a gradient of two colors, specified here, and a white/transparent wave graphic specified in the cover.md of the content files |
|
|
59
|
+
| | $quire-cover-color-2 | color value | |
|
|
60
|
+
| Layout sizes | $quire-menu-width | unit value | 352px default |
|
|
61
|
+
| | $navbar-height | unit value | 3rem default |
|
|
62
|
+
| | $quire-entry-header-height | unit value | 6rem default, determines the relative height of the entry page image viewer when in horizontal viewing mode |
|
|
63
|
+
| | $quire-map-height | unit value | 500px default |
|
|
64
|
+
| | $quire-deepzoom-height | unit value | 500px default |
|
|
65
|
+
|
|
66
|
+
## Special Classes
|
|
67
|
+
|
|
68
|
+
| Class | Description |
|
|
69
|
+
| ----- | ----------- |
|
|
70
|
+
| page-one | For PDF output, should be used on the page/chapter where you want page 1 to start, `class: page-one`, often an Introduction or first essay rather than the Contents pages or other frontmatter |
|
|
71
|
+
| backmatter | Can be applied to Markdown text with the `q-class` shortcode and text will be styled smaller, like the default footnotes style
|
|
72
|
+
| is-pulled-left, is-pulled-right | Can be applied to figures or figure groups with their shortcodes, will make figures roughly half-column width and will float them to the left or right of the text |
|
|
73
|
+
| brief, list, abstract, grid | Can be applied to pages with a `type: contents`, will alter how the contents are displayed |
|
|
74
|
+
| side-by-side, landscape | Can be applied to pages with a `type: entry`, will alter how the image viewer is displayed |
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
## Configuration Parameters
|
|
78
|
+
|
|
79
|
+
Outside of the theme files themselves, a Quire project will also have a config.yml file which includes a number of parameters the theme relies on.
|
|
80
|
+
|
|
81
|
+
| Parameter | Expected Value | Description |
|
|
82
|
+
| --------- | -------------- | ----------- |
|
|
83
|
+
| searchEnabled | boolean | Turn on or off the built-in text search capability for users |
|
|
84
|
+
| licenseIcons | boolean | Whether or not to display Creative Commons license icons |
|
|
85
|
+
| pageLabelDivider | string | ". " default, etermines the text/spacing to be inserted between page .label and page .title |
|
|
86
|
+
| citationPageLocationDivider | string | ", " default, determines the text/spacing to be inserted between the citation and the page number in the q-cite shortcode |
|
|
87
|
+
| displayBiblioShort| boolean | Whether a bibilography generated with the q-cite or q-bibliography shorcodes should display the short form of the reference, along with the long. |
|
|
88
|
+
| imageDir | string | "img" default, the directory in the `/static/` directory where you put your images |
|
|
89
|
+
| tocType | "full", "short" | "short" will hide all sub-section pages |
|
|
90
|
+
| menuType | "full", "short" | "short" will hide all sub-section pages |
|
|
91
|
+
| prevPageButtonText | string | "Back" default |
|
|
92
|
+
| nextPageButtonText | string | "Next" default |
|
|
93
|
+
| entryPageSideBySideLayout | boolean | Entry pages can have a side-by-side layout with image on the left and text on the right, this can be controlled by `class: side-by-side` in the page YAML, or globally with this parameter |
|
|
94
|
+
| entryPageObjectLinkText | string | "View in Collection" default |
|
|
95
|
+
| figureLabelLocation | "on-top", "below" | Whether the figure label is "on-top" of the image in the upper left corner, or "below" it with the caption |
|
|
96
|
+
| figureModal | boolean | If figures should be clickable to open into a full-screen modal window |
|
|
97
|
+
| figureModalIcons | boolean | Whether to display icons with the figure modal links |
|
|
98
|
+
| figureZoom | boolean | Whether figures should zoom or not inside the modal |
|
|
99
|
+
|
|
100
|
+
## Development Info
|
|
101
|
+
|
|
102
|
+
The default theme is paired with the [default starter](https://github.com/thegetty/quire/starters/default) demo content, and is included when running `quire new`.
|
|
103
|
+
|
|
104
|
+
Consult [the Quire documentation](https://quire.getty.edu/) for more detailed information on publishing with Quire.
|
|
105
|
+
|
|
106
|
+
### Testing
|
|
107
|
+
|
|
108
|
+
The testing framework used for the `default-theme` is [Cypress](https://www.cypress.io/). The cypress tests are run for every pull request through circleci. However if you are developing the `default-theme` you can run the tests locally also. This is possible by running `npm install` and then running `npm run test:e2e:local` from the `default-theme`directory.
|
|
109
|
+
|
|
110
|
+
## License
|
|
111
|
+
|
|
112
|
+
Copyright © 2021, J Paul Getty Trust.
|
|
File without changes
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{{/*
|
|
2
|
+
Baseof template. All other files inherit from this layout, so edit it with care.
|
|
3
|
+
The "main" bock has been added below to make it easy to slot in content from
|
|
4
|
+
different layouts into this template, just wrap your file in {{ define "main" }}
|
|
5
|
+
/ {{ end }} tags.
|
|
6
|
+
*/}}
|
|
7
|
+
|
|
8
|
+
{{- $js := "js/application.js" | relURL -}}
|
|
9
|
+
{{- $figureModal := .Site.Params.figureModal -}}
|
|
10
|
+
|
|
11
|
+
{{- partial "tests/run.html" . -}}
|
|
12
|
+
|
|
13
|
+
<!DOCTYPE html>
|
|
14
|
+
<html lang="{{ .Site.Data.publication.language }}">
|
|
15
|
+
{{ partial "head.html" . }}
|
|
16
|
+
<body>
|
|
17
|
+
{{ partial "icons.html" . }}
|
|
18
|
+
{{- if eq .Site.Params.licenseIcons true -}}
|
|
19
|
+
{{ partial "icons-cc.html" . }}
|
|
20
|
+
{{- end -}}
|
|
21
|
+
{{- if eq .Site.Params.pdf true -}}
|
|
22
|
+
{{ partial "pdf-info.html" . }}
|
|
23
|
+
{{- end -}}
|
|
24
|
+
<div class="quire no-js" id="container">
|
|
25
|
+
<div class="quire__secondary remove-from-epub"
|
|
26
|
+
id="site-menu"
|
|
27
|
+
aria-expanded="false"
|
|
28
|
+
role="contentinfo">
|
|
29
|
+
{{ partial "menu.html" . }}
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
<div class="quire__primary" id="{{ with .Section }}{{ . | urlize }}-{{ end }}{{ .File.BaseFileName | lower }}">
|
|
33
|
+
{{ partial "navbar.html" . }}
|
|
34
|
+
|
|
35
|
+
{{ block "main" . }}
|
|
36
|
+
|
|
37
|
+
{{ end }}
|
|
38
|
+
</div>
|
|
39
|
+
{{ partial "search.html" . }}
|
|
40
|
+
</div>
|
|
41
|
+
{{ partial "scripts.html" (dict "context" . "figureModal" $figureModal) }}
|
|
42
|
+
</body>
|
|
43
|
+
</html>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{{/*
|
|
2
|
+
Single page default template. Normal page content will appear in the
|
|
3
|
+
.Content outlet below.
|
|
4
|
+
*/}}
|
|
5
|
+
|
|
6
|
+
{{ define "main" }}
|
|
7
|
+
<article class="{{ partial "page-class.html" . }} quire-page" id="main" role="main">
|
|
8
|
+
{{ partial "page-header.html" . }}
|
|
9
|
+
{{ if .Content }}
|
|
10
|
+
<section class="section quire-page__content" id="content">
|
|
11
|
+
<div class="container">
|
|
12
|
+
<div class="content">
|
|
13
|
+
{{ .Content }}
|
|
14
|
+
{{ partial "page-bibliography.html" . }}
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</section>
|
|
18
|
+
{{ end }}
|
|
19
|
+
<section class="section quire-page__content">
|
|
20
|
+
<div class="container">
|
|
21
|
+
{{ partial "footer-buttons.html" . }}
|
|
22
|
+
</div>
|
|
23
|
+
</section>
|
|
24
|
+
</article>
|
|
25
|
+
{{ end }}
|
|
26
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{{/*
|
|
2
|
+
Table of Contents (TOC) page template. Page content from the markdown will
|
|
3
|
+
appear in the .Content outlet below. The Table of Contents list will appear
|
|
4
|
+
below that. It is scoped to show the contents of the full site. Pages can be
|
|
5
|
+
removed from the TOC indivudally by adding "toc: false" to the page yaml.
|
|
6
|
+
*/}}
|
|
7
|
+
|
|
8
|
+
{{ define "main" }}
|
|
9
|
+
<div class="{{ partial "page-class.html" . }} quire-contents" id="main" role="main">
|
|
10
|
+
{{ partial "page-header.html" . }}
|
|
11
|
+
|
|
12
|
+
<section class="section quire-page__content" id="content">
|
|
13
|
+
|
|
14
|
+
{{- if .Content -}}
|
|
15
|
+
<div class="container">
|
|
16
|
+
<div class="content">
|
|
17
|
+
{{ .Content }}
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
{{- end -}}
|
|
21
|
+
|
|
22
|
+
{{ $class := .Params.class }}
|
|
23
|
+
<div class="container {{ if in $class "grid" }}is-fullhd{{ end }}">
|
|
24
|
+
<div class="quire-contents-list {{ if in $class "grid" }} grid{{ else if in $class "abstract" }} abstract{{ else if in $class "brief" }} brief{{ else }} list{{ end }}">
|
|
25
|
+
{{ if .Section }}
|
|
26
|
+
{{ $scope := .File.Dir }}
|
|
27
|
+
{{- partial "contents-list/contents-list.html" (dict "site" .Site "contentsScope" $scope "contentsLocation" ".Params.toc" "contentsPage" . ) -}}
|
|
28
|
+
{{ else }}
|
|
29
|
+
{{ $scope := "" }}
|
|
30
|
+
{{- partial "contents-list/contents-list.html" (dict "site" .Site "contentsScope" $scope "contentsLocation" ".Params.toc" "contentsPage" . ) -}}
|
|
31
|
+
{{ end }}
|
|
32
|
+
</div>
|
|
33
|
+
{{ partial "footer-buttons.html" . }}
|
|
34
|
+
</div>
|
|
35
|
+
</section>
|
|
36
|
+
</div>
|
|
37
|
+
{{ end }}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
{{/*
|
|
2
|
+
Cover page layout. This controls the home page of the publication.
|
|
3
|
+
*/}}
|
|
4
|
+
|
|
5
|
+
{{ define "main" }}
|
|
6
|
+
|
|
7
|
+
{{ if isset $.Site.Params "imagedir" }}
|
|
8
|
+
{{ $.Scratch.Set "imageDir" $.Site.Params.imageDir }}
|
|
9
|
+
{{ else }}
|
|
10
|
+
{{ $.Scratch.Set "imageDir" "" }}
|
|
11
|
+
{{ end }}
|
|
12
|
+
|
|
13
|
+
<div class="{{ partial "page-class.html" . }} quire-cover" id="main" role="main">
|
|
14
|
+
|
|
15
|
+
{{ if eq $.Site.Params.epub true }}
|
|
16
|
+
{{- if .Site.Data.publication.promo_image -}}
|
|
17
|
+
{{- $imgCoverPath := printf "%s/%s" ($.Scratch.Get "imageDir") .Site.Data.publication.promo_image -}}
|
|
18
|
+
<img src="{{ $imgCoverPath | relURL }}" class="epub-cover-image" />
|
|
19
|
+
{{- end -}}
|
|
20
|
+
{{/* PDF full cover image */}}
|
|
21
|
+
{{ else }}
|
|
22
|
+
|
|
23
|
+
{{/* Begin full-page cover section */}}
|
|
24
|
+
{{- if .Params.image -}}
|
|
25
|
+
{{- $imgPath := printf "%s/%s" ($.Scratch.Get "imageDir") .Params.image -}}
|
|
26
|
+
<section class="quire-cover__hero hero is-fullheight">
|
|
27
|
+
<div class="quire-cover__overlay" style="background-image: url('{{ $imgPath }}');"></div>
|
|
28
|
+
{{- else -}}
|
|
29
|
+
<section class="quire-cover__hero hero is-fullheight">
|
|
30
|
+
<div class="quire-cover__overlay"></div>
|
|
31
|
+
{{- end -}}
|
|
32
|
+
<div class="quire-cover__hero-body hero-body">
|
|
33
|
+
<div class="container is-fluid">
|
|
34
|
+
{{/* Use .Site.Data.publication info if available */}}
|
|
35
|
+
{{ if .Site.Data.publication }}
|
|
36
|
+
|
|
37
|
+
{{- $endPunctuation := findRE "[!|?]$" .Site.Data.publication.title -}}
|
|
38
|
+
<h1 class="title">
|
|
39
|
+
{{ .Site.Data.publication.title | markdownify }}
|
|
40
|
+
{{- with .Site.Data.publication.subtitle -}}
|
|
41
|
+
{{- if $endPunctuation }} {{ else }}<span class="visually-hidden">: </span>{{ end -}}
|
|
42
|
+
<span class="subtitle">{{ . | markdownify }}</span>
|
|
43
|
+
{{ end }}
|
|
44
|
+
</h1>
|
|
45
|
+
|
|
46
|
+
{{ with .Site.Data.publication.reading_line }}
|
|
47
|
+
<p class="reading-line">{{ . | markdownify }}</p>
|
|
48
|
+
{{ end }}
|
|
49
|
+
|
|
50
|
+
<div class="contributor">
|
|
51
|
+
{{- if .Site.Data.publication.contributor_as_it_appears -}}
|
|
52
|
+
{{ .Site.Data.publication.contributor_as_it_appears | markdownify }}
|
|
53
|
+
{{ else }}
|
|
54
|
+
<span class="visually-hidden">Contributors: </span>
|
|
55
|
+
|
|
56
|
+
{{/* List primary contributors unless none are marked as primary
|
|
57
|
+
in which case list all contributors in publication.yml */}}
|
|
58
|
+
{{/* ------------------------------------------------------------ */}}
|
|
59
|
+
{{- range .Site.Data.publication.contributor -}}
|
|
60
|
+
{{- if .type -}}
|
|
61
|
+
{{ $.Scratch.Set "type" true }}
|
|
62
|
+
{{- end -}}
|
|
63
|
+
{{- end -}}
|
|
64
|
+
{{ if eq ($.Scratch.Get "type") true }}
|
|
65
|
+
<em>{{ partial "contributor-list.html" (dict "range" .Site.Data.publication.contributor "contributorType" "primary" "listType" "string" "Site" $.Site) }}</em>
|
|
66
|
+
{{- else -}}
|
|
67
|
+
<em>{{ partial "contributor-list.html" (dict "range" .Site.Data.publication.contributor "contributorType" "all" "listType" "string" "Site" $.Site) }}</em>
|
|
68
|
+
{{- end -}}
|
|
69
|
+
{{- end -}}
|
|
70
|
+
</div>
|
|
71
|
+
|
|
72
|
+
{{ else }}
|
|
73
|
+
{{/* Fallback for when no publication.yml data is present */}}
|
|
74
|
+
<h1 class="title">{{ .Site.Title }}</h1>
|
|
75
|
+
{{ end }}
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
</section>
|
|
79
|
+
{{/* End full-page cover section */}}
|
|
80
|
+
|
|
81
|
+
{{/* Begin "below-the-fold" section */}}
|
|
82
|
+
{{ if .Content }}
|
|
83
|
+
<section class="quire-cover__more" >
|
|
84
|
+
<div class="quire-cover__more-body hero-more">
|
|
85
|
+
{{ if and (ne $.Site.Params.epub true) (ne $.Site.Params.pdf true) }}
|
|
86
|
+
<a href="#content">
|
|
87
|
+
{{- partial "icon.html" (dict "type" "down-arrow" "description" "Scroll down to read more") -}}
|
|
88
|
+
</a>
|
|
89
|
+
{{ end }}
|
|
90
|
+
</div>
|
|
91
|
+
</section>
|
|
92
|
+
<section class="section quire-page__content" id="content">
|
|
93
|
+
<div class="container is-fluid">
|
|
94
|
+
<div class="content">
|
|
95
|
+
{{ .Content }}
|
|
96
|
+
{{ partial "page-bibliography.html" . }}
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
</section>
|
|
100
|
+
{{ partial "footer-buttons.html" . }}
|
|
101
|
+
{{ else }}
|
|
102
|
+
{{- $pages := .Site.Pages -}}
|
|
103
|
+
{{- $pages := where $pages "Params.online" "!=" "false" }}
|
|
104
|
+
{{- $pages := where $pages ".Type" "!=" "data" -}}
|
|
105
|
+
{{- $nextPages := where $pages "Weight" "gt" .Weight -}}
|
|
106
|
+
{{- if gt (len $nextPages) 0 -}}
|
|
107
|
+
{{- range first 1 $nextPages -}}
|
|
108
|
+
<section class="quire-cover__more" >
|
|
109
|
+
<div class="quire-cover__more-body hero-more next-page">
|
|
110
|
+
{{ if and (ne $.Site.Params.epub true) (ne $.Site.Params.pdf true) }}
|
|
111
|
+
<a href="{{ .Permalink | relURL }}">
|
|
112
|
+
{{- partial "icon.html" (dict "type" "down-arrow" "description" "Scroll down to read more") -}}
|
|
113
|
+
</a>
|
|
114
|
+
{{ end }}
|
|
115
|
+
</div>
|
|
116
|
+
</section>
|
|
117
|
+
{{- end -}}
|
|
118
|
+
{{- end -}}
|
|
119
|
+
{{ end }}
|
|
120
|
+
{{/* End "below-the-fold" section */}}
|
|
121
|
+
|
|
122
|
+
{{ if eq $.Site.Params.pdf true }}
|
|
123
|
+
{{ partial "pdf-title-pages.html" (dict "site" .Site) }}
|
|
124
|
+
{{ end }}
|
|
125
|
+
</div>
|
|
126
|
+
|
|
127
|
+
{{ end }}
|
|
128
|
+
{{ end }}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{{/*
|
|
2
|
+
Search Index Data template
|
|
3
|
+
|
|
4
|
+
This template builds a single JSON file ("/search.json" by default) with data
|
|
5
|
+
suitable for being fed into a client-side search tool such as Lunr.js.
|
|
6
|
+
|
|
7
|
+
In order for Hugo to actually output this data as a static file, add an empty
|
|
8
|
+
Markdown file somewhere in your main "content" folder that has the type of
|
|
9
|
+
"data" and the layout of "search-index". Set the URL params to whatever you want
|
|
10
|
+
the output file to be called. Ex:
|
|
11
|
+
|
|
12
|
+
project_root/content/search-index.md
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
type: data
|
|
16
|
+
layout: search-index
|
|
17
|
+
url: search.json
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
NB: This solution makes use of **both** the standard $.Scratch register AND a
|
|
21
|
+
block-scoped .Scratch inside the `range` loop.
|
|
22
|
+
*/}}
|
|
23
|
+
|
|
24
|
+
{{- $.Scratch.Add "index" slice -}}
|
|
25
|
+
|
|
26
|
+
{{- $searchablePages := where .Site.Pages ".Kind" "page" }}
|
|
27
|
+
{{ $searchablePages := where $searchablePages "Params.online" "!=" "false" }}
|
|
28
|
+
{{ $searchablePages := where $searchablePages ".Type" "!=" "data" }}
|
|
29
|
+
{{- $searchablePages := where $searchablePages "Params.search" "!=" "false" -}}
|
|
30
|
+
|
|
31
|
+
{{- range $index, $page := $searchablePages -}}
|
|
32
|
+
|
|
33
|
+
{{- .Scratch.Set "pageData" "" -}}
|
|
34
|
+
{{- .Scratch.Set "searchContent" "" -}}
|
|
35
|
+
{{- .Scratch.Set "pageURL" "" -}}
|
|
36
|
+
{{- .Scratch.Set "parentSection" "" -}}
|
|
37
|
+
{{- .Scratch.Set "pageTitle" "" -}}
|
|
38
|
+
{{- .Scratch.Set "pageType" "" -}}
|
|
39
|
+
{{- .Scratch.Set "pageLength" "" -}}
|
|
40
|
+
|
|
41
|
+
{{- if $page.Content -}}
|
|
42
|
+
{{- .Scratch.Set "searchContent" $page.Plain -}}
|
|
43
|
+
{{- .Scratch.Set "pageURL" $page.Permalink -}}
|
|
44
|
+
{{- .Scratch.Set "pageType" $page.Type -}}
|
|
45
|
+
{{- .Scratch.Set "pageLength" $page.WordCount -}}
|
|
46
|
+
|
|
47
|
+
{{- end -}}
|
|
48
|
+
|
|
49
|
+
{{- if $page.Params.label -}}
|
|
50
|
+
{{ .Scratch.Set "pageTitle" (printf "%s%s%s" (string $page.Params.label) .Site.Params.pageLabelDivider $page.Title) }}
|
|
51
|
+
{{- else -}}
|
|
52
|
+
{{ .Scratch.Set "pageTitle" $page.Title }}
|
|
53
|
+
{{- end -}}
|
|
54
|
+
|
|
55
|
+
{{- if $page.Params.subtitle -}}
|
|
56
|
+
{{ .Scratch.Set "pageFullTitle" (printf "%s: %s" (.Scratch.Get "pageTitle") $page.Params.subtitle) }}
|
|
57
|
+
{{- else -}}
|
|
58
|
+
{{ .Scratch.Set "pageFullTitle" (.Scratch.Get "pageTitle") }}
|
|
59
|
+
{{- end -}}
|
|
60
|
+
|
|
61
|
+
{{- .Scratch.Set "pageData" (dict "id" $index "title" (.Scratch.Get "pageFullTitle") "url" (.Scratch.Get "pageURL") "type" (.Scratch.Get "pageType") "length" (.Scratch.Get "pageLength") "content" (.Scratch.Get "searchContent")) -}}
|
|
62
|
+
|
|
63
|
+
{{- $.Scratch.Add "index" (.Scratch.Get "pageData") -}}
|
|
64
|
+
{{- end -}}
|
|
65
|
+
{{- $.Scratch.Get "index" | jsonify -}}
|