@thegetty/quire-11ty
Advanced tools
Comparing version 1.0.0-pre-release.8 to 1.0.0-pre-release.9
@@ -18,3 +18,3 @@ const { html } = require('common-tags') | ||
return function ({ annotation, index, input, name }) { | ||
const { id, label, selected, type, url } = annotation | ||
const { id, label, selected, type, uri } = annotation | ||
@@ -42,3 +42,3 @@ if (!label) { | ||
type="${input}" | ||
value="${url}" | ||
value="${uri}" | ||
data-annotation-id="${id}" | ||
@@ -45,0 +45,0 @@ data-annotation-type="${type}" |
@@ -17,3 +17,3 @@ const { html } = require('~lib/common-tags') | ||
nextButtonText, | ||
previousButtonText | ||
prevButtonText | ||
} = eleventyConfig.globalData.config.navigation | ||
@@ -29,3 +29,3 @@ | ||
<li class="quire-nav-button prev"> | ||
<a href="${previousPage.url}">${icon({ type: 'left-arrow', description: 'Go back a page'})} <span class="nav-title">${nextButtonText}</span></a> | ||
<a href="${previousPage.url}">${icon({ type: 'left-arrow', description: 'Go back a page'})} <span class="nav-title">${prevButtonText}</span></a> | ||
<span class="visually-hidden">Previous Page (left keyboard arrow or swipe)</span> | ||
@@ -40,3 +40,3 @@ </li> | ||
<li class="quire-nav-button next"> | ||
<a href="${nextPage.url}"><span class="nav-title">${previousButtonText}</span> ${icon({ type: 'right-arrow', description: 'Go back next page' })}</a> | ||
<a href="${nextPage.url}"><span class="nav-title">${nextButtonText}</span> ${icon({ type: 'right-arrow', description: 'Go back next page' })}</a> | ||
<span class="visually-hidden">Next Page (right keyboard arrow or swipe)</span> | ||
@@ -43,0 +43,0 @@ </li> |
## Eleventy `_includes` | ||
> Eleventy `_includes`, like `_layouts` are language-agnostic, are not processed as full template files, and are meant to wrap and/or be wrapped by other templates. Unlike `_layouts`, `_includes` are meant to be consumed _inline_ by other templates such as `_layouts` or other `_includes`. | ||
> Eleventy `_includes`, like `_layouts`, are language-agnostic, are not processed as full template files, and are meant to wrap and/or be wrapped by other templates. Unlike `_layouts`, `_includes` are meant to be consumed _inline_ by other templates such as `_layouts` or other `_includes`. | ||
Use Liquid or Nunjucks template language includes for HTML _partials_ that do not need parameters other than those available in the global data inheritance context. | ||
Use [Liquid](https://www.11ty.dev/docs/languages/liquid/) or [Nunjucks](https://www.11ty.dev/docs/languages/nunjucks/) template language includes for HTML _partials_ that do not need parameters other than those available in the global data inheritance context. | ||
@@ -11,3 +11,3 @@ ### `_includes/components` | ||
Use a shortcode components when the rendering the include requires using JavaScript or NPM packages, complex conditional logic or manipulation of data, including async data. | ||
Use a shortcode component when rendering the include requires using JavaScript or NPM packages, complex conditional logic or data manipulation, including async data. | ||
@@ -27,3 +27,3 @@ ### Data | ||
The `data` property contains the final data from the Eleventy data cascade, including Quire specific global data files located in the `content/_data/` directory. | ||
The `data` property contains the final data from the [Eleventy data cascade](https://www.11ty.dev/docs/data-cascade/), including Quire specific global data files located in the `content/_data/` directory. | ||
@@ -30,0 +30,0 @@ ### Example Usage |
@@ -8,4 +8,5 @@ ## Eleventy layout templates | ||
### Data | ||
todo | ||
TODO | ||
### Example Usage | ||
@@ -55,2 +56,3 @@ | ||
### Page attributes | ||
#### Classes | ||
@@ -57,0 +59,0 @@ Classes added to the front matter `class` property of a layout or template are applied to the `<main>` element of that page. |
{ | ||
"name": "@thegetty/quire-11ty", | ||
"version": "1.0.0-pre-release.8", | ||
"version": "1.0.0-pre-release.9", | ||
"description": "Quire 11ty static site generator", | ||
@@ -49,3 +49,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"@11ty/eleventy": "^2.0.0-canary.16", | ||
"@11ty/eleventy": "^2.0.0-canary.18", | ||
"@11ty/eleventy-img": "^2.0.1", | ||
@@ -56,4 +56,4 @@ "@11ty/eleventy-navigation": "^0.3.5", | ||
"@11ty/eleventy-plugin-vite": "^2.0.0-canary.2", | ||
"@11ty/eleventy-plugin-webc": "^0.6.0", | ||
"@11ty/is-land": "^2.0.3", | ||
"@11ty/eleventy-plugin-webc": "^0.7.0", | ||
"@11ty/is-land": "^3.0.0", | ||
"@iiif/parser": "^1.1.0", | ||
@@ -67,3 +67,3 @@ "@iiif/vault": "^0.9.19", | ||
"del-cli": "^4.0.1", | ||
"eslint": "^8.19.0", | ||
"eslint": "^8.28.0", | ||
"exifr": "^7.1.3", | ||
@@ -94,3 +94,3 @@ "fs-extra": "^10.1.0", | ||
"sass": "^1.54.5", | ||
"sharp": "^0.31.1", | ||
"sharp": "^0.31.2", | ||
"simple-cite": "^0.2.1", | ||
@@ -109,3 +109,3 @@ "toml": "^3.0.0" | ||
"~includes": "./_includes", | ||
"~layouts": "./layouts", | ||
"~layouts": "./_layouts", | ||
"~lib": "./_lib", | ||
@@ -112,0 +112,0 @@ "~plugins": "./_plugins" |
24690037