@thegetty/quire-11ty
Advanced tools
Comparing version 1.0.0-DEV7192.1 to 1.0.0-DEV7192.2
@@ -59,2 +59,3 @@ /** | ||
pageTitle: require('./page-title.js'), | ||
search: require('./search.js'), | ||
scripts: require('./scripts.js'), | ||
@@ -61,0 +62,0 @@ sequencePanel: require('./figure/image/sequence-panel'), |
@@ -14,36 +14,34 @@ const path = require('path') | ||
const pageId = this.slugify(url) || path.parse(inputPath).name | ||
const figures = pageData.page.figures | ||
return this.renderTemplate( | ||
html` | ||
<!doctype html> | ||
<html lang="${publication.language}"> | ||
${this.head(data)} | ||
<body> | ||
${this.icons(data)} | ||
${this.iconscc(data)} | ||
<div class="quire no-js" id="container"> | ||
<div | ||
aria-expanded="false" | ||
class="quire__secondary" | ||
id="site-menu" | ||
role="contentinfo" | ||
data-outputs-exclude="epub,pdf" | ||
> | ||
${this.menu({ collections, pageData })} | ||
</div> | ||
<div class="quire__primary"> | ||
${this.navigation(data)} | ||
<main class="quire-page ${pageClasses}" data-output-path="${outputPath}" data-page-id="${pageId}" > | ||
${content} | ||
</main> | ||
</div> | ||
{% render 'search' %} | ||
return html` | ||
<!doctype html> | ||
<html lang="${publication.language}"> | ||
${this.head(data)} | ||
<body> | ||
${this.icons(data)} | ||
${this.iconscc(data)} | ||
<div class="quire no-js" id="container"> | ||
<div | ||
aria-expanded="false" | ||
class="quire__secondary" | ||
id="site-menu" | ||
role="contentinfo" | ||
data-outputs-exclude="epub,pdf" | ||
> | ||
${this.menu({ collections, pageData })} | ||
</div> | ||
${await this.modal()} | ||
${this.scripts()} | ||
</body> | ||
</html> | ||
`, | ||
'liquid' | ||
) | ||
<div class="quire__primary"> | ||
${this.navigation(data)} | ||
<main class="quire-page ${pageClasses}" data-output-path="${outputPath}" data-page-id="${pageId}" > | ||
${content} | ||
</main> | ||
</div> | ||
${this.search(data)} | ||
</div> | ||
${await this.modal(figures)} | ||
${this.scripts()} | ||
</body> | ||
</html> | ||
` | ||
} |
@@ -16,5 +16,5 @@ /** | ||
const page = collections.all.find(({ inputPath }) => inputPath === this.page.inputPath) | ||
return component(eleventyConfig, { collections, page })(...args) | ||
return component(eleventyConfig, { collections, page }).bind(this)(...args) | ||
}) | ||
} | ||
} |
@@ -44,4 +44,4 @@ const chalkFactory = require('~lib/chalk') | ||
figure = { ...figure, ...arguments } | ||
if (!page.figures) page.figures = [] | ||
page.figures.push(figure) | ||
if (!this.page.figures) this.page.figures = [] | ||
this.page.figures.push(figure) | ||
@@ -48,0 +48,0 @@ const { mediaType } = figure |
@@ -43,3 +43,3 @@ const { html } = require('~lib/common-tags') | ||
for (let id of ids.slice(startIndex, columns + startIndex)) { | ||
row += await figure(eleventyConfig, { page })(id, classes) | ||
row += await figure(eleventyConfig, { page }).bind(this)(id, classes) | ||
} | ||
@@ -46,0 +46,0 @@ figureTags.push(`<div class="q-figure--group__row columns">${row}</div>`) |
{ | ||
"name": "@thegetty/quire-11ty", | ||
"version": "1.0.0-DEV7192.1", | ||
"version": "1.0.0-DEV7192.2", | ||
"description": "Quire 11ty static site generator", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
3233156
25333