@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,348 @@
|
|
|
1
|
+
{{/*
|
|
2
|
+
Template for the "Cite this Page" feature. Called as a
|
|
3
|
+
partial, such as:
|
|
4
|
+
|
|
5
|
+
partial "cite-this.html" (dict "page" . "site" .Site "type" "chicago" "range" "page")
|
|
6
|
+
|
|
7
|
+
Can accept "chicago" or "mla" as a type
|
|
8
|
+
|
|
9
|
+
Can accept "page" or "site" as a range
|
|
10
|
+
|
|
11
|
+
Follows standard of using "et al" for more than ten
|
|
12
|
+
authors in Chicago citations, and more than two authors
|
|
13
|
+
in MLA citations.
|
|
14
|
+
|
|
15
|
+
***Note***
|
|
16
|
+
Edit this template with care as it is easy to introduce stray spaces occuring around punctuation.
|
|
17
|
+
*/}}
|
|
18
|
+
|
|
19
|
+
{{ $citationType := .type }}
|
|
20
|
+
{{ $citationRange := .range }}
|
|
21
|
+
|
|
22
|
+
{{- $endPunctuation := findRE "[!|?]$" .site.Data.publication.title -}}
|
|
23
|
+
{{ $seriesStartNumber := findRE "^[0-9]" .site.Data.publication.number_in_series }}
|
|
24
|
+
|
|
25
|
+
{{ $siteAuthorCount := "" }}
|
|
26
|
+
{{ $siteEditorCount := "" }}
|
|
27
|
+
|
|
28
|
+
{{ $siteAuthorCount = len (where .site.Data.publication.contributor "type" "primary") }}
|
|
29
|
+
{{ if ne $siteAuthorCount 0 }}
|
|
30
|
+
{{ $siteEditorCount = len (where .site.Data.publication.contributor "role" "editor") }}
|
|
31
|
+
{{ end }}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
{{/* ------------ CHICAGO ------------ */}}
|
|
35
|
+
{{- if eq $citationType "chicago" -}}
|
|
36
|
+
|
|
37
|
+
{{- if eq $citationRange "page" -}}
|
|
38
|
+
|
|
39
|
+
{{ if .page.Params.contributor }}{{ template "page-contributors-chicago" .page }}. {{ end }}{{ if .page.Title }}“{{ partial "page-title.html" .page | markdownify }}.” {{ else if .page.Params.label }}“{{ .page.Params.label }}.” {{ else }}Untitled. {{ end }}In <em>{{ partial "site-title.html" .page }}</em>{{ if gt $siteAuthorCount 0 }}, {{ if gt $siteEditorCount 0 }}edited {{ end }}by {{ template "publication-contributors-chicago" .page }}{{ end }}. {{ template "publishers-chicago" (dict "site" .site)}}{{ with .site.Data.publication.pub_date }}, {{ dateFormat "2006" . }}{{ end }}. <span class="url-string">{{ if .site.Data.publication.identifier.url }}{{ .site.Data.publication.identifier.url }}{{ .page.RelPermalink }}{{ else }}{{ .page.Permalink }}{{ end }}</span>.
|
|
40
|
+
|
|
41
|
+
{{- else if eq $citationRange "site" -}}
|
|
42
|
+
|
|
43
|
+
{{ template "publication-contributors" (dict "page" .page "Site" .site "type" $citationType) }}. <em>{{ .site.Data.publication.title }}{{ with .site.Data.publication.subtitle }}{{ if $endPunctuation }} {{ else }}: {{ end }}{{ . }}{{ end }}</em>. {{ if .site.Data.publication.series }}{{ .site.Data.publication.series }}{{ with .site.Data.publication.number_in_series }}{{ if $seriesStartNumber }} {{ else }}, {{ end }}{{ . }}{{ end }}.{{ end }} {{ template "publishers-chicago" (dict "site" .site) }}{{ with .site.Data.publication.pub_date }}, {{ dateFormat "2006" . }}{{ end }}.{{ with .site.Data.publication.identifier.url }} <span class="url-string">{{ . }}</span>.{{ end }}
|
|
44
|
+
|
|
45
|
+
{{- end -}}
|
|
46
|
+
|
|
47
|
+
{{/* ------------ MLA ------------ */}}
|
|
48
|
+
{{- else if eq $citationType "mla" -}}
|
|
49
|
+
|
|
50
|
+
{{- if eq $citationRange "page" -}}
|
|
51
|
+
|
|
52
|
+
{{ if .page.Params.contributor }}{{ template "page-contributors-mla" .page }}. {{ end }}{{ if .page.Title }}“{{ partial "page-title.html" .page | markdownify }}.” {{ else if .page.Params.label }}“{{ .page.Params.label }}.” {{ else }}Untitled. {{ end }}<em>{{ partial "site-title.html" .page }}</em>{{ if gt $siteAuthorCount 0 }}, {{ if gt $siteEditorCount 0 }}edited {{ end }}by {{ template "publication-contributors-mla" .page }}{{ end }}. {{ template "publishers-mla" (dict "site" .site)}}{{ with .site.Data.publication.pub_date }}, {{ dateFormat "2006" . }}{{ end }}. <span class="url-string">{{ if .site.Data.publication.identifier.url }}{{ .site.Data.publication.identifier.url }}{{ .page.RelPermalink }}{{ else }}{{ .page.Permalink }}{{ end }}</span>. Accessed <span class="cite-current-date">DD Mon. YYYY</span>.
|
|
53
|
+
|
|
54
|
+
{{- else if eq $citationRange "site" -}}
|
|
55
|
+
|
|
56
|
+
{{ template "publication-contributors" (dict "page" .page "Site" .site "type" $citationType) }}. <em>{{ .site.Data.publication.title }}{{ with .site.Data.publication.subtitle }}{{ if $endPunctuation }} {{ else }}: {{ end }}{{ . }}{{ end }}.</em> {{ if .site.Data.publication.series }}{{ .site.Data.publication.series }}{{ with .site.Data.publication.number_in_series }}{{ if $seriesStartNumber }} {{ else }}, {{ end }}{{ . }}{{ end }}.{{ end }} {{ template "publishers-mla" (dict "site" .site) }}{{ with .site.Data.publication.pub_date }}, {{ dateFormat "2006" . }}{{ end }}. {{ with .site.Data.publication.identifier.url }}<span class="url-string">{{ . }}</span>{{ end }}. Accessed <span class="cite-current-date">DD Mon. YYYY</span>.
|
|
57
|
+
|
|
58
|
+
{{- end -}}
|
|
59
|
+
|
|
60
|
+
{{- end -}}
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
{{- define "page-contributors-mla" -}}
|
|
64
|
+
{{- if .Page.Params.contributor -}}
|
|
65
|
+
{{- $len := len .Page.Params.contributor -}}
|
|
66
|
+
{{- range $index, $element := .Page.Params.contributor -}}
|
|
67
|
+
{{- if and (eq $len 1) (eq $index 0) -}}
|
|
68
|
+
{{ template "contrib-name-reverse-last" (dict "site" $.Site "page" . )}}
|
|
69
|
+
{{- else if eq $index 0 -}}
|
|
70
|
+
{{ template "contrib-name-reverse" (dict "site" $.Site "page" . )}}
|
|
71
|
+
{{- else -}}
|
|
72
|
+
{{- if eq $len 2 }}, and {{ template "contrib-name-last" (dict "site" $.Site "page" . )}}{{ end -}}
|
|
73
|
+
{{- end -}}
|
|
74
|
+
{{- end -}}
|
|
75
|
+
{{- if gt $len 2 }}, et al{{ end -}}
|
|
76
|
+
{{- end -}}
|
|
77
|
+
{{- end -}}
|
|
78
|
+
|
|
79
|
+
{{- define "publication-contributors-mla" -}}
|
|
80
|
+
{{- $len := len (where $.Site.Data.publication.contributor "type" "primary") -}}
|
|
81
|
+
{{- range $index, $element := (where $.Site.Data.publication.contributor "type" "primary") -}}
|
|
82
|
+
{{ if eq $index 0 }}
|
|
83
|
+
{{ template "contrib-name" (dict "site" $.Site "page" . )}}
|
|
84
|
+
{{- else -}}
|
|
85
|
+
{{- if eq $len 2 }} and {{ template "contrib-name-last" (dict "site" $.Site "page" . )}}{{ end -}}
|
|
86
|
+
{{- end -}}
|
|
87
|
+
{{- end -}}
|
|
88
|
+
{{- if gt $len 2 }}, et al{{ end -}}
|
|
89
|
+
{{- end -}}
|
|
90
|
+
|
|
91
|
+
{{- define "page-contributors-chicago" -}}
|
|
92
|
+
{{- if .Page.Params.contributor -}}
|
|
93
|
+
{{- $len := len .Page.Params.contributor -}}
|
|
94
|
+
{{- range $index, $element := .Page.Params.contributor -}}
|
|
95
|
+
{{- if and (eq $len 1) (eq $index 0) -}}
|
|
96
|
+
{{ template "contrib-name-reverse-last" (dict "site" $.Site "page" . )}}{{- else if eq $index 0 -}}
|
|
97
|
+
{{ template "contrib-name-reverse" (dict "site" $.Site "page" . )}}, {{ end -}}
|
|
98
|
+
|
|
99
|
+
{{- if or (and (eq $len 2) (eq $index 1)) (and (eq $len 3) (eq $index 2)) -}}
|
|
100
|
+
and {{ template "contrib-name-last" (dict "site" $.Site "page" . )}}
|
|
101
|
+
{{- end -}}
|
|
102
|
+
|
|
103
|
+
{{- if or (and (gt $len 2) (eq $index 1)) (and (gt $len 3) (eq $index 2)) -}}
|
|
104
|
+
{{ template "contrib-name" (dict "site" $.Site "page" . )}}, {{ end -}}
|
|
105
|
+
{{- end -}}
|
|
106
|
+
|
|
107
|
+
{{- if gt $len 3 -}}
|
|
108
|
+
et al
|
|
109
|
+
{{- end -}}
|
|
110
|
+
|
|
111
|
+
{{- end -}}
|
|
112
|
+
{{- end -}}
|
|
113
|
+
|
|
114
|
+
{{- define "publication-contributors-chicago" -}}
|
|
115
|
+
{{- $len := len (where $.Site.Data.publication.contributor "type" "primary") -}}
|
|
116
|
+
{{- range $index, $element := (where $.Site.Data.publication.contributor "type" "primary") -}}
|
|
117
|
+
{{- if gt $index 2 -}}
|
|
118
|
+
{{- else if and (eq $index 0) (eq $len 1) }}
|
|
119
|
+
{{ template "contrib-name" (dict "site" $.Site "page" . )}}
|
|
120
|
+
{{- else if eq $index (sub $len 1) }}
|
|
121
|
+
and {{ template "contrib-name" (dict "site" $.Site "page" . )}}
|
|
122
|
+
{{- else if and (eq $index 0) (eq $len 2) }}
|
|
123
|
+
{{ template "contrib-name" (dict "site" $.Site "page" . )}}
|
|
124
|
+
{{ else -}}
|
|
125
|
+
{{ template "contrib-name" (dict "site" $.Site "page" . )}},
|
|
126
|
+
{{ end -}}
|
|
127
|
+
{{- end -}}
|
|
128
|
+
{{- if gt $len 3 }}et al{{ end -}}
|
|
129
|
+
{{- end -}}
|
|
130
|
+
|
|
131
|
+
{{/* This template creates a list of contributors for citations based on the "primary" contributors in the publication. It reverses the first name, adds "et al" as needed when the contributors list is beyond a certain length, handles adding ed(s)/editor(s) as called for. It returns the list without end punctuation, so should be followed by a period.
|
|
132
|
+
|
|
133
|
+
See https://www.chicagomanualofstyle.org/book/ed17/part3/ch14/psec076.html for rules on the inclusion of contributors.
|
|
134
|
+
--------------------------------------------------------------------------*/}}
|
|
135
|
+
{{- define "publication-contributors" -}}
|
|
136
|
+
|
|
137
|
+
{{ $citationType := .type }}
|
|
138
|
+
|
|
139
|
+
{{ $contributors := (where $.Site.Data.publication.contributor "type" "primary") }}
|
|
140
|
+
{{- $contributorLength := len $contributors -}}
|
|
141
|
+
|
|
142
|
+
{{- $editors := (where $contributors "role" "eq" "editor") -}}
|
|
143
|
+
{{- $editorLength := len $editors -}}
|
|
144
|
+
|
|
145
|
+
{{/* Set the value of $editorTag
|
|
146
|
+
If the primary contributors are listed as role: editor, we need to add "ed(s)" or "editor(s)" to the list of contributor names
|
|
147
|
+
--------------------------------------------------------------------------*/}}
|
|
148
|
+
{{- $editorTag := "" -}}
|
|
149
|
+
{{- if eq $editorLength 1 }}
|
|
150
|
+
{{- if eq $citationType "chicago" -}}
|
|
151
|
+
{{- $editorTag = "ed" -}}
|
|
152
|
+
{{- else if eq $citationType "mla" -}}
|
|
153
|
+
{{- $editorTag = "editor" -}}
|
|
154
|
+
{{- end -}}
|
|
155
|
+
{{- else if gt $editorLength 1 -}}
|
|
156
|
+
{{- if eq $citationType "chicago" -}}
|
|
157
|
+
{{- $editorTag = "eds" -}}
|
|
158
|
+
{{- else if eq $citationType "mla" -}}
|
|
159
|
+
{{- $editorTag = "editors" -}}
|
|
160
|
+
{{- end -}}
|
|
161
|
+
{{- end -}}
|
|
162
|
+
|
|
163
|
+
{{/* Chicago suggests that et al be used for
|
|
164
|
+
------------------------------------------------------------------------*/}}
|
|
165
|
+
{{- $maxLength := "" -}}
|
|
166
|
+
{{- $displayLength := "" -}}
|
|
167
|
+
{{- if eq $citationType "chicago" -}}
|
|
168
|
+
{{- $maxLength = 10 -}}
|
|
169
|
+
{{- $displayLength = 7 -}}
|
|
170
|
+
{{- else if eq $citationType "mla" -}}
|
|
171
|
+
{{- $maxLength = 2 -}}
|
|
172
|
+
{{- $displayLength = 1 -}}
|
|
173
|
+
{{- end -}}
|
|
174
|
+
|
|
175
|
+
{{- range $index, $element := $contributors -}}
|
|
176
|
+
|
|
177
|
+
{{/* If the number of contributors is beyond a certain number, display only
|
|
178
|
+
a set ammount ($displayLength), and append the list with et al. Ignore subsequent contributors in the list beyond this. Lenghts vary bewtween Chicago and MLA formats
|
|
179
|
+
------------------------------------------------------------------------*/}}
|
|
180
|
+
{{- if and (gt $contributorLength $maxLength) (eq $index $displayLength) -}}
|
|
181
|
+
|
|
182
|
+
et al{{ if $editorTag }}., {{ end -}}
|
|
183
|
+
|
|
184
|
+
{{- else if and (gt $contributorLength $maxLength) (gt $index $displayLength) -}}
|
|
185
|
+
|
|
186
|
+
{{/* If this is the last name ...
|
|
187
|
+
------------------------------------------------------------------------*/}}
|
|
188
|
+
{{- else if eq $index (sub $contributorLength 1) -}}
|
|
189
|
+
|
|
190
|
+
{{/* First check if it's also the first name, and reverse it if so: LastName, FirstName
|
|
191
|
+
----------------------------------------------------------------------*/}}
|
|
192
|
+
{{- if eq $index 0 -}}
|
|
193
|
+
|
|
194
|
+
{{/* If there's a role tag to add, leave any ending punctuation in the name, and add a comma
|
|
195
|
+
--------------------------------------------------------------------*/}}
|
|
196
|
+
{{- if $editorTag -}}
|
|
197
|
+
|
|
198
|
+
{{ template "contrib-name-reverse" (dict "site" $.Site "page" . )}},
|
|
199
|
+
|
|
200
|
+
{{/* Otherwise strip any ending punctuation
|
|
201
|
+
--------------------------------------------------------------------*/}}
|
|
202
|
+
{{ else -}}
|
|
203
|
+
|
|
204
|
+
{{ template "contrib-name-reverse-last" (dict "site" $.Site "page" . )}}
|
|
205
|
+
|
|
206
|
+
{{- end -}}
|
|
207
|
+
|
|
208
|
+
{{/* Second, if it's not the first name, display it in reading order. FirstName LastName
|
|
209
|
+
----------------------------------------------------------------------*/}}
|
|
210
|
+
{{- else if gt $index 0 -}}
|
|
211
|
+
|
|
212
|
+
{{/* If there's a role tag to add, leave any ending punctuation in the name, and add a comma
|
|
213
|
+
--------------------------------------------------------------------*/}}
|
|
214
|
+
{{- if ne $editorTag "" -}}
|
|
215
|
+
|
|
216
|
+
and {{ template "contrib-name" (dict "site" $.Site "page" . )}},
|
|
217
|
+
|
|
218
|
+
{{/* Otherwise strip any ending punctuation
|
|
219
|
+
--------------------------------------------------------------------*/}}
|
|
220
|
+
{{ else -}}
|
|
221
|
+
|
|
222
|
+
and {{ template "contrib-name-last" (dict "site" $.Site "page" . )}}
|
|
223
|
+
|
|
224
|
+
{{- end -}}
|
|
225
|
+
|
|
226
|
+
{{- end -}}
|
|
227
|
+
|
|
228
|
+
{{/* If this is the first name, reverse it and add a comma: LastName, FirstName,
|
|
229
|
+
------------------------------------------------------------------------*/}}
|
|
230
|
+
{{- else if eq $index 0 -}}
|
|
231
|
+
|
|
232
|
+
{{ template "contrib-name-reverse" (dict "site" $.Site "page" . )}},
|
|
233
|
+
|
|
234
|
+
{{/* If this is a name in the middle of the list, just add it in with a comma: FirstName LastName,
|
|
235
|
+
------------------------------------------------------------------------*/}}
|
|
236
|
+
{{- else if (gt $index 0) (lt $index (sub $contributorLength 1) ) -}}
|
|
237
|
+
|
|
238
|
+
{{ template "contrib-name" (dict "site" $.Site "page" . )}},
|
|
239
|
+
|
|
240
|
+
{{ end -}}
|
|
241
|
+
|
|
242
|
+
{{/* End the range
|
|
243
|
+
--------------------------------------------------------------------------*/}}
|
|
244
|
+
{{- end -}}
|
|
245
|
+
|
|
246
|
+
{{/* If there's a role tag to add, do so now
|
|
247
|
+
--------------------------------------------------------------------------*/}}
|
|
248
|
+
{{- with $editorTag -}} {{ . }}{{- end -}}
|
|
249
|
+
|
|
250
|
+
{{- end -}}
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
{{- define "contrib-name-reverse" -}}
|
|
255
|
+
{{- if .page.id -}}
|
|
256
|
+
{{- range where .site.Data.publication.contributor "id" .page.id -}}
|
|
257
|
+
{{ template "name-string-reverse" . }}
|
|
258
|
+
{{- end -}}
|
|
259
|
+
{{- else -}}
|
|
260
|
+
{{ template "name-string-reverse" .page }}
|
|
261
|
+
{{- end -}}
|
|
262
|
+
{{- end -}}
|
|
263
|
+
|
|
264
|
+
{{- define "contrib-name" -}}
|
|
265
|
+
{{- if .page.id -}}
|
|
266
|
+
{{- range where .site.Data.publication.contributor "id" .page.id -}}
|
|
267
|
+
{{ template "name-string" . }}
|
|
268
|
+
{{- end -}}
|
|
269
|
+
{{- else -}}
|
|
270
|
+
{{ template "name-string" .page }}
|
|
271
|
+
{{- end -}}
|
|
272
|
+
{{- end -}}
|
|
273
|
+
|
|
274
|
+
{{- define "name-string" -}}
|
|
275
|
+
{{- if .full_name -}}
|
|
276
|
+
{{ .full_name }}
|
|
277
|
+
{{- else -}}
|
|
278
|
+
{{ printf "%s%s%s" .first_name " " .last_name }}
|
|
279
|
+
{{- end -}}
|
|
280
|
+
{{- end -}}
|
|
281
|
+
|
|
282
|
+
{{- define "name-string-reverse" -}}
|
|
283
|
+
{{- if .full_name -}}
|
|
284
|
+
{{ .full_name }}
|
|
285
|
+
{{- else -}}
|
|
286
|
+
{{ printf "%s%s%s" .last_name ", " .first_name }}
|
|
287
|
+
{{- end -}}
|
|
288
|
+
{{- end -}}
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
{{- define "contrib-name-reverse-last" -}}
|
|
292
|
+
{{- if .page.id -}}
|
|
293
|
+
{{- range where .site.Data.publication.contributor "id" .page.id -}}
|
|
294
|
+
{{ template "name-string-reverse-last" . }}
|
|
295
|
+
{{- end -}}
|
|
296
|
+
{{- else -}}
|
|
297
|
+
{{ template "name-string-reverse-last" .page }}
|
|
298
|
+
{{- end -}}
|
|
299
|
+
{{- end -}}
|
|
300
|
+
|
|
301
|
+
{{- define "contrib-name-last" -}}
|
|
302
|
+
{{- if .page.id -}}
|
|
303
|
+
{{- range where .site.Data.publication.contributor "id" .page.id -}}
|
|
304
|
+
{{ template "name-string-last" . }}
|
|
305
|
+
{{- end -}}
|
|
306
|
+
{{- else -}}
|
|
307
|
+
{{ template "name-string-last" .page }}
|
|
308
|
+
{{- end -}}
|
|
309
|
+
{{- end -}}
|
|
310
|
+
|
|
311
|
+
{{- define "name-string-last" -}}
|
|
312
|
+
{{- if .full_name -}}
|
|
313
|
+
{{ $nameLast := .full_name }}
|
|
314
|
+
{{ replaceRE "[.]$" "" $nameLast }}
|
|
315
|
+
{{- else -}}
|
|
316
|
+
{{ $nameLast := printf "%s%s%s" .first_name " " .last_name }}
|
|
317
|
+
{{ replaceRE "[.]$" "" $nameLast }}
|
|
318
|
+
{{- end -}}
|
|
319
|
+
{{- end -}}
|
|
320
|
+
|
|
321
|
+
{{- define "name-string-reverse-last" -}}
|
|
322
|
+
{{- if .full_name -}}
|
|
323
|
+
{{ $nameLast := .full_name }}
|
|
324
|
+
{{ replaceRE "[.]$" "" $nameLast }}
|
|
325
|
+
{{- else -}}
|
|
326
|
+
{{ $nameLast := printf "%s%s%s" .last_name ", " .first_name }}
|
|
327
|
+
{{ replaceRE "[.]$" "" $nameLast }}
|
|
328
|
+
{{- end -}}
|
|
329
|
+
{{- end -}}
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
{{- define "publishers-chicago" -}}
|
|
333
|
+
{{ $len := len .site.Data.publication.publisher }}
|
|
334
|
+
{{ range $index, $element := .site.Data.publication.publisher }}
|
|
335
|
+
{{ if eq $index (sub $len 1) }}
|
|
336
|
+
{{ .location }}: {{ .name }}{{ else }}
|
|
337
|
+
{{ .location }}: {{ .name }}; {{ end }}
|
|
338
|
+
{{- end }}
|
|
339
|
+
{{- end -}}
|
|
340
|
+
|
|
341
|
+
{{- define "publishers-mla" -}}
|
|
342
|
+
{{ $len := len .site.Data.publication.publisher }}
|
|
343
|
+
{{ range $index, $element := .site.Data.publication.publisher }}
|
|
344
|
+
{{ if eq $index (sub $len 1) }}
|
|
345
|
+
{{ .name }}{{ else }}
|
|
346
|
+
{{ .name }}, {{ end }}
|
|
347
|
+
{{- end }}
|
|
348
|
+
{{- end -}}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
{{- $imageDir := "" -}}
|
|
3
|
+
{{- if .Site.Params.imageDir -}}
|
|
4
|
+
{{- $imageDir = .Site.Params.imageDir -}}
|
|
5
|
+
{{- else }}
|
|
6
|
+
{{- $imageDir = "img" -}}
|
|
7
|
+
{{- end }}
|
|
8
|
+
{{- $imgPath := printf "%s/%s" $imageDir .src -}}
|
|
9
|
+
<div class="card-image">
|
|
10
|
+
<figure class="image">
|
|
11
|
+
<img src="{{ $imgPath | relURL }}" alt="" />
|
|
12
|
+
</figure>
|
|
13
|
+
</div>
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{{/* If the .File.Dir of the current page matches the START of the .File.Dir of the next page, we’re still in the same section, so do nothing. Otherwise proceed to next section to add the appropriate number of closing /ul/li tags to close section(s)
|
|
2
|
+
--------------------------------------------------------------------------- */}}
|
|
3
|
+
{{- $currentPage := (index .AllPages .PageIndex).File.Dir -}}
|
|
4
|
+
{{- $currentPageDirectory := partial "contents-list/file-dir.html" $currentPage -}}
|
|
5
|
+
|
|
6
|
+
{{- $nextPage := (index .AllPages (add .PageIndex 1)).File.Dir -}}
|
|
7
|
+
{{- $nextPageDirectory := "" -}}
|
|
8
|
+
{{- if $nextPage }}
|
|
9
|
+
{{- $nextPageDirectory = partial "contents-list/file-dir.html" $nextPage -}}
|
|
10
|
+
{{- end -}}
|
|
11
|
+
|
|
12
|
+
{{- $findPattern := printf "%s%s" "^" $currentPageDirectory -}}
|
|
13
|
+
|
|
14
|
+
{{- if (findRE $findPattern $nextPageDirectory) -}}
|
|
15
|
+
|
|
16
|
+
{{- else -}}
|
|
17
|
+
|
|
18
|
+
{{- if ne $currentPageDirectory "/" -}}
|
|
19
|
+
|
|
20
|
+
{{/* Find the last page within the same .File.Dir as the current page, if the current page IS the last page, we need to add at least one set of closing /ul/li tags. to determine how many sets of tags are needed, check the sub-section level difference between the current page and the next page. For example, a page with a file directory of `section/sub-section/sub-sub-section/` is at sub-section level of 3. If the next page is at `section/`, with sub-section level of 1, there are 2 levels of difference between them and so we need 2 sets of closing tags. (We use a findRE pattern to count the number of instances of one or more characters followed by a slash in the .File.Dir to determine the sub-section level.)
|
|
21
|
+
------------------------------------------------------------------------- */}}
|
|
22
|
+
{{- $currentPageID := .Page.File.UniqueID -}}
|
|
23
|
+
{{- $pagesInSection := where .AllPages "File.Dir" "eq" $currentPage -}}
|
|
24
|
+
{{- $openSections := .openSections -}}
|
|
25
|
+
|
|
26
|
+
{{- range last 1 $pagesInSection -}}
|
|
27
|
+
|
|
28
|
+
{{- if eq .Page.File.UniqueID $currentPageID -}}
|
|
29
|
+
|
|
30
|
+
{{- $nextPageSubSectionLevel := len (findRE "(.+?)/" $nextPageDirectory) -}}
|
|
31
|
+
{{- $currentPageSubSectionLevel := len (findRE "(.+?)/" $currentPageDirectory) -}}
|
|
32
|
+
{{- $indentDifference := sub $currentPageSubSectionLevel $nextPageSubSectionLevel -}}
|
|
33
|
+
|
|
34
|
+
{{- if le $indentDifference 1 -}}
|
|
35
|
+
</ul></li>
|
|
36
|
+
{{- else -}}
|
|
37
|
+
{{- range after 0 (seq $indentDifference) }}
|
|
38
|
+
</ul></li>
|
|
39
|
+
{{- end -}}
|
|
40
|
+
{{- end -}}
|
|
41
|
+
|
|
42
|
+
{{/* If the section of the last page rendered is not the same as the section of the next page that’s going to be rendered, we have to add in an additional set of /ul/li tags to close the section.
|
|
43
|
+
--------------------------------------------------------------------- */}}
|
|
44
|
+
{{- if and ($nextPageSubSectionLevel) (ne $currentPageSubSectionLevel $nextPageSubSectionLevel) -}}
|
|
45
|
+
{{ $sectionLevelKey := printf "%s%s" "s" (string $nextPageSubSectionLevel) }}
|
|
46
|
+
{{- range $key, $value := $openSections -}}
|
|
47
|
+
{{- if and (eq $key $sectionLevelKey) (ne . $nextPageDirectory) -}}
|
|
48
|
+
</ul></li>
|
|
49
|
+
{{- end -}}
|
|
50
|
+
{{- end -}}
|
|
51
|
+
{{- end -}}
|
|
52
|
+
|
|
53
|
+
{{- end -}}
|
|
54
|
+
|
|
55
|
+
{{- end -}}
|
|
56
|
+
|
|
57
|
+
{{- end -}}
|
|
58
|
+
|
|
59
|
+
{{- end -}}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
{{/*
|
|
2
|
+
This partial generates a contents list. It is used in the publication menu
|
|
3
|
+
and in the "contents" page type, but could be extended for further use. It
|
|
4
|
+
expects four specific variables to be passed:
|
|
5
|
+
|
|
6
|
+
site .Site
|
|
7
|
+
contentsScope Typically .Site.Pages or narrowed down to pages within a
|
|
8
|
+
specific section.
|
|
9
|
+
contentsLocation Must be either ".Params.menu" or ".Params.toc". Determines
|
|
10
|
+
in what context the partial is being shown so that
|
|
11
|
+
individual pages can be hidden as called for. For example,
|
|
12
|
+
if contentsLocation is "toc" any pages in the publication
|
|
13
|
+
with "toc: false" will be omitted from the generated
|
|
14
|
+
contents list.
|
|
15
|
+
contentsPage Typically . This just passes the page context through to
|
|
16
|
+
allow a Scratch variable to be set when creating sections.
|
|
17
|
+
|
|
18
|
+
Content can either be in top-level files in the `content` directory, or
|
|
19
|
+
in sub-directories to create sections.
|
|
20
|
+
|
|
21
|
+
For users to customize their publiction, this partial response to `class`
|
|
22
|
+
values in the page YAML as well. For the menu, the class can be set in the
|
|
23
|
+
config.yml of the project with the menuClass parameter.
|
|
24
|
+
|
|
25
|
+
`grid` A grid of cards, using images defined in indivudal page
|
|
26
|
+
yaml when avaialble
|
|
27
|
+
|
|
28
|
+
`abstract` Title and contributor headings, and a page abstract
|
|
29
|
+
if one is provided, or the page Summary. If `abstract` is
|
|
30
|
+
an empty value `""`, no abstract or summary will be shown
|
|
31
|
+
in the contents list.
|
|
32
|
+
|
|
33
|
+
`list` Lists the title, subtitle and contributors as included. The
|
|
34
|
+
default value, if no `class` is specified.
|
|
35
|
+
|
|
36
|
+
`brief` Lists only the title, or short_title when available.
|
|
37
|
+
|
|
38
|
+
EXAMPLE PARTIAL USE:
|
|
39
|
+
partial "contents-list.html" (dict "site" .Site "contentsScope" .Site.Pages "contentsLocation" ".Params.toc" "contentsPage" . )
|
|
40
|
+
|
|
41
|
+
*/}}
|
|
42
|
+
|
|
43
|
+
{{- $contentsLocation := .contentsLocation -}}
|
|
44
|
+
|
|
45
|
+
{{/* List pages, but remove data pages, those hidden from toc/menu, and those hidden from specific output formats as needed
|
|
46
|
+
--------------------------------------------------------------------------- */}}
|
|
47
|
+
{{- $pages := "" -}}
|
|
48
|
+
{{- $pages = where .site.Pages ".Kind" "page" -}}
|
|
49
|
+
{{- $pages = where $pages ".Type" "!=" "data" -}}
|
|
50
|
+
{{- $pages = where $pages .contentsLocation "!=" "false" -}}
|
|
51
|
+
{{- if eq .site.Params.pdf true -}}
|
|
52
|
+
{{- $pages = where $pages "Params.pdf" "!=" "false" -}}
|
|
53
|
+
{{- else if eq .site.Params.epub true -}}
|
|
54
|
+
{{- $pages = where $pages "Params.epub" "!=" "false" -}}
|
|
55
|
+
{{- else -}}
|
|
56
|
+
{{- $pages = where $pages "Params.online" "!=" "false" -}}
|
|
57
|
+
{{- end -}}
|
|
58
|
+
|
|
59
|
+
{{/* To mark items as frontmatter for page numbering styles in PDF
|
|
60
|
+
--------------------------------------------------------------------------- */}}
|
|
61
|
+
{{- $pageOne := "" -}}
|
|
62
|
+
{{- range first 1 (where $pages "Params.class" "in" "page-one") -}}
|
|
63
|
+
{{- $pageOne = .Weight -}}
|
|
64
|
+
{{- end -}}
|
|
65
|
+
|
|
66
|
+
{{- $contentsPageClass := "" -}}
|
|
67
|
+
{{- $contentsPageID := "" -}}
|
|
68
|
+
{{- if eq .contentsLocation ".Params.toc" -}}
|
|
69
|
+
{{- $contentsPageClass = .contentsPage.Params.class -}}
|
|
70
|
+
{{- $contentsPageID = .contentsPage.File.UniqueID -}}
|
|
71
|
+
{{- else -}}
|
|
72
|
+
{{- $contentsPageClass = .site.Params.menuClass -}}
|
|
73
|
+
{{- $contentsPageID = "" -}}
|
|
74
|
+
{{- end -}}
|
|
75
|
+
|
|
76
|
+
{{/* This contents list is built based on the number of section levels any given page is at, which is determined by looking at its File.Dir.
|
|
77
|
+
|
|
78
|
+
Section level 1: section/
|
|
79
|
+
Section level 2: section/sub-section/
|
|
80
|
+
Section level 3: section/sub-section/sub-sub-section/
|
|
81
|
+
&tc.
|
|
82
|
+
|
|
83
|
+
In order to properly close the /ul/li elements and nest sub-sections, the logic in this partial compares the File.Dirs, tracks sections that have been rendered but not yet closed, and looks at the difference in section levels from one page to the next.
|
|
84
|
+
--------------------------------------------------------------------------- */}}
|
|
85
|
+
|
|
86
|
+
{{- $lastSection := "/" -}}
|
|
87
|
+
{{- $openSections := dict -}}
|
|
88
|
+
{{- $renderedSections := "" -}}
|
|
89
|
+
{{- if .contentsScope -}}
|
|
90
|
+
{{- $renderedSections = partial "contents-list/file-dir.html" .contentsScope -}}
|
|
91
|
+
{{- end -}}
|
|
92
|
+
{{- $contentsScopePattern := printf "%s%s" "^" $renderedSections -}}
|
|
93
|
+
{{- $contentsPageID := .contentsPage.File.UniqueID -}}
|
|
94
|
+
|
|
95
|
+
<ul>
|
|
96
|
+
{{- range $index, $page := $pages -}}
|
|
97
|
+
|
|
98
|
+
{{- $section := partial "contents-list/file-dir.html" .File.Dir -}}
|
|
99
|
+
{{- $sectionLevel := len (findRE "(.+?)/" $section) -}}
|
|
100
|
+
{{- $sameAsOpenSection := false -}}
|
|
101
|
+
|
|
102
|
+
{{/* The $openSections map tracks the File.Dir of most recently rendered page from any give section level. If the new page is part of that same section, the section is still open.
|
|
103
|
+
------------------------------------------------------------------------- */}}
|
|
104
|
+
{{- $sectionLevelKey := printf "%s%s" "s" (string $sectionLevel) -}}
|
|
105
|
+
{{- range $key, $value := $openSections -}}
|
|
106
|
+
{{- if and (eq $key $sectionLevelKey) (eq $section $value) -}}
|
|
107
|
+
{{ $sameAsOpenSection = true }}
|
|
108
|
+
{{- end -}}
|
|
109
|
+
{{- end -}}
|
|
110
|
+
{{- $openSections = merge $openSections (dict $sectionLevelKey $section) -}}
|
|
111
|
+
|
|
112
|
+
{{/* Check to make sure the page is within the section that the contents list is being rendederd in (the "contents scope"). If it is, and it’s not also the contents page itself, render the list item for it.
|
|
113
|
+
------------------------------------------------------------------------- */}}
|
|
114
|
+
{{- $pageWithinThisScope := findRE $contentsScopePattern $section -}}
|
|
115
|
+
{{- if and $pageWithinThisScope (or (eq $contentsLocation ".Params.menu") (and (eq $contentsLocation ".Params.toc") (ne $contentsPageID .File.UniqueID))) -}}
|
|
116
|
+
|
|
117
|
+
{{- if and (ne $lastSection $section) (eq $sameAsOpenSection false) -}}
|
|
118
|
+
|
|
119
|
+
{{/* This checks all of the parent sections/directories of the current page to see if they've already been rendered in the contents list, if they haven’t a heading is added for each. This is needed in the case where sections don’t have their own child pages and so would have been be skipped over and not rendered without this specific check. Based on the number of levels deep the page is, parent sections are checked one at a time, from the top-most, to the most direct: xxxx/..../..../page
|
|
120
|
+
xxxx/xxxx/..../page
|
|
121
|
+
xxxx/xxxx/xxxx/page
|
|
122
|
+
----------------------------------------------------------------------- */}}
|
|
123
|
+
{{- range $index, $num := (seq (sub $sectionLevel 1)) -}}
|
|
124
|
+
|
|
125
|
+
{{- $pattern := printf "%s%s%s" "^((.[^/]*)/){" (string $num) "}" -}}
|
|
126
|
+
{{- $parentSection := findRE $pattern $section -}}
|
|
127
|
+
{{- $parentSection = delimit $parentSection "" -}}
|
|
128
|
+
|
|
129
|
+
{{- if not (in $renderedSections $parentSection) -}}
|
|
130
|
+
|
|
131
|
+
{{/* Update $openSections map
|
|
132
|
+
------------------------------------------------------------------- */}}
|
|
133
|
+
{{- $parentSectionLevel := len (findRE "(.+?)/" $parentSection) -}}
|
|
134
|
+
{{- $parentSectionLevelKey := printf "%s%s" "s" (string $parentSectionLevel) -}}
|
|
135
|
+
{{- $openSections = merge $openSections (dict $parentSectionLevelKey $parentSection) -}}
|
|
136
|
+
|
|
137
|
+
{{/* Add closing UL tag if this is not a deeper section than the last
|
|
138
|
+
------------------------------------------------------------------- */}}
|
|
139
|
+
{{- $lastSectionLevel := len (findRE "(.+?)/" $lastSection) -}}
|
|
140
|
+
{{- if gt (sub $lastSectionLevel $parentSectionLevel) 0 -}}
|
|
141
|
+
</ul>
|
|
142
|
+
{{- end -}}
|
|
143
|
+
|
|
144
|
+
{{/* Add heading for parent section
|
|
145
|
+
------------------------------------------------------------------- */}}
|
|
146
|
+
{{- partial "contents-list/section-heading" (dict "Section" $parentSection "Level" (sub $parentSectionLevel 1) ) -}}
|
|
147
|
+
|
|
148
|
+
{{- end -}}
|
|
149
|
+
|
|
150
|
+
{{- end -}}
|
|
151
|
+
|
|
152
|
+
{{- if ne .Params.slug "." -}}
|
|
153
|
+
|
|
154
|
+
{{/* Add heading for file section
|
|
155
|
+
------------------------------------------------------------------- */}}
|
|
156
|
+
{{- partial "contents-list/section-heading" (dict "Section" $section "Level" (sub $sectionLevel 1) ) -}}
|
|
157
|
+
|
|
158
|
+
<li class="page-item level-{{ $sectionLevel }}{{ if lt .Page.Weight $pageOne }} frontmatter-page{{ end }}">{{ partial "contents-list/list-item-type" (dict "Page" . "Class" $contentsPageClass) }}</li>
|
|
159
|
+
{{ partial "contents-list/closing-tags" (dict "Page" . "AllPages" $pages "PageIndex" $index "openSections" $openSections) -}}
|
|
160
|
+
|
|
161
|
+
{{- else -}}
|
|
162
|
+
<li class="section-item level-{{ if eq .Slug "." }}{{ sub $sectionLevel 1 }}{{ else }}{{ $sectionLevel }}{{ end }}{{ if lt .Page.Weight $pageOne }} frontmatter-page{{ end }}">{{ partial "contents-list/list-item-type" (dict "Page" . "Class" $contentsPageClass) }}
|
|
163
|
+
<ul>
|
|
164
|
+
{{- end -}}
|
|
165
|
+
|
|
166
|
+
{{- else -}}
|
|
167
|
+
|
|
168
|
+
<li class="page-item level-{{ $sectionLevel }}{{ if lt .Page.Weight $pageOne }} frontmatter-page{{ end }}">{{ partial "contents-list/list-item-type" (dict "Page" . "Class" $contentsPageClass) }}</li>
|
|
169
|
+
{{ partial "contents-list/closing-tags" (dict "Page" . "AllPages" $pages "PageIndex" $index "openSections" $openSections) -}}
|
|
170
|
+
|
|
171
|
+
{{- end -}}
|
|
172
|
+
|
|
173
|
+
{{- $lastSection = $section -}}
|
|
174
|
+
{{- $renderedSections = delimit (uniq (slice $renderedSections $section)) ", " -}}
|
|
175
|
+
|
|
176
|
+
{{- end -}}
|
|
177
|
+
|
|
178
|
+
{{- end -}}
|
|
179
|
+
</ul>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{{/* Uses the Hugo `path.Dir` function to return the given path's directory and normalize it, making it consistent for both Windows and macOS/Linux/Unix users
|
|
2
|
+
--------------------------------------------------------------------------- */}}
|
|
3
|
+
{{- $fileDir := path.Dir . -}}
|
|
4
|
+
{{- if ne $fileDir "/" -}}
|
|
5
|
+
{{- $fileDir = printf "%s%s" $fileDir "/" -}}
|
|
6
|
+
{{- end -}}
|
|
7
|
+
{{- return $fileDir -}}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{{/* Converts the given .File.Dir to a path that uses forward slashes to make it consistent for both Windows and macOS/Linux/Unix users
|
|
2
|
+
--------------------------------------------------------------------------- */}}
|
|
3
|
+
{{- $filePath := path.Dir . -}}
|
|
4
|
+
{{- $foo := printf "%s%s" "Foo: " $filePath -}}
|
|
5
|
+
{{ $foo }}
|
|
6
|
+
{{- $filePath = printf "%s%s" $filePath "/" -}}
|
|
7
|
+
{{- $gradoo := printf "%s%s" "Gradoo: " $filePath -}}
|
|
8
|
+
{{ $gradoo }}
|
|
9
|
+
{{- $filePath = replaceRE "//" "/" $filePath -}}
|
|
10
|
+
{{- return $filePath -}}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{{- if in .Class "grid" -}}
|
|
2
|
+
{{ partial "contents-list/list-item-types/grid.html" .Page }}
|
|
3
|
+
{{- else if in .Class "abstract" -}}
|
|
4
|
+
{{ partial "contents-list/list-item-types/abstract.html" .Page }}
|
|
5
|
+
{{- else if in .Class "brief" -}}
|
|
6
|
+
{{ partial "contents-list/list-item-types/brief.html" .Page }}
|
|
7
|
+
{{- else -}}
|
|
8
|
+
{{ partial "contents-list/list-item-types/default.html" .Page }}
|
|
9
|
+
{{- end -}}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<a href="{{ .Page.Permalink | relURL }}">
|
|
2
|
+
|
|
3
|
+
{{- with .Page.Params.label }}{{ . }}{{ $.Site.Params.pageLabelDivider }}{{ end -}}
|
|
4
|
+
|
|
5
|
+
{{- partial "page-title.html" . | markdownify -}}
|
|
6
|
+
|
|
7
|
+
{{- if .Page.Params.contributor }}<span class="contributor"> — {{ partial "contributor-list.html" (dict "range" .Page.Params.contributor "contributorType" "all" "listType" "string" "Site" .Site) }}</span>{{ end -}}
|
|
8
|
+
|
|
9
|
+
<span class="arrow remove-from-epub"> {{- partial "icon.html" (dict "type" "arrow-forward" "description" "") -}}</span></a>
|
|
10
|
+
|
|
11
|
+
{{- if .Page.Params.abstract -}}
|
|
12
|
+
<div class="abstract-text">
|
|
13
|
+
{{/* Returns abstract with any links stripped out
|
|
14
|
+
------------------------------------------------------------------------- */}}
|
|
15
|
+
{{- .Page.Params.abstract | markdownify | replaceRE "</?a(|\\s*[^>]+)>" "" | htmlUnescape | safeHTML -}}
|
|
16
|
+
</div>
|
|
17
|
+
{{- end -}}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<a href="{{ .Page.Permalink | relURL }}">
|
|
2
|
+
|
|
3
|
+
{{- with .Page.Params.label }}{{ . }}{{ $.Site.Params.pageLabelDivider }}{{ end -}}
|
|
4
|
+
|
|
5
|
+
{{- .Page.Title | markdownify -}}
|
|
6
|
+
|
|
7
|
+
<span class="arrow remove-from-epub"> {{- partial "icon.html" (dict "type" "arrow-forward" "description" "") -}}</span></a>
|