@canopy-iiif/app 1.6.1 → 1.6.2

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/lib/build/iiif.js CHANGED
@@ -13,6 +13,7 @@ const {
13
13
  htmlShell,
14
14
  rootRelativeHref,
15
15
  canopyBodyClassForType,
16
+ readSiteMetadata,
16
17
  } = require("../common");
17
18
  const {resolveCanopyConfigPath} = require("../config-path");
18
19
  const mdx = require("./mdx");
@@ -1917,6 +1918,7 @@ async function buildIiifCollectionPages(CONFIG) {
1917
1918
  const pageContextValue = {
1918
1919
  navigation: navigationContext,
1919
1920
  page: pageDetails,
1921
+ site: readSiteMetadata ? {...readSiteMetadata()} : null,
1920
1922
  };
1921
1923
  if (
1922
1924
  metadataFacetLabels.length &&
@@ -284,7 +284,9 @@ async function buildSearchPage() {
284
284
  canonical: searchHref,
285
285
  },
286
286
  };
287
- const rendered = await mdx.compileMdxFile(searchLayoutPath, outPath, { page: pageDetails });
287
+ const rendered = await mdx.compileMdxFile(searchLayoutPath, outPath, null, {
288
+ page: pageDetails,
289
+ });
288
290
  body = rendered && rendered.body ? rendered.body : '';
289
291
  head = rendered && rendered.head ? rendered.head : '';
290
292
  if (!body) throw new Error('Search: content/search/_layout.mdx produced empty output');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canopy-iiif/app",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "Mat Jordan <mat@northwestern.edu>",