amphora-html 6.0.0-7 → 6.0.0-8

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.
Files changed (2) hide show
  1. package/lib/media.js +14 -0
  2. package/package.json +1 -1
package/lib/media.js CHANGED
@@ -274,6 +274,20 @@ function getStyleFiles(state) {
274
274
  }
275
275
  }
276
276
 
277
+ // check for clay linked font files
278
+ const defaultFontPath = path.join(assetDir, 'css', '_linked-fonts._default.css');
279
+ const siteFontPath = path.join(assetDir, 'css', `_linked-fonts.${siteStyleguide}.css`);
280
+
281
+ // check for inlined font files
282
+ const defaultInlinedFontPath = path.join(assetDir, 'css', '_inlined-fonts._default.css');
283
+ const siteInlinedFontPath = path.join(assetDir, 'css', `_inlined-fonts.${siteStyleguide}.css`);
284
+
285
+ // add any default and site font css
286
+ cssFilePaths.push(defaultFontPath);
287
+ cssFilePaths.push(siteFontPath);
288
+ cssFilePaths.push(defaultInlinedFontPath);
289
+ cssFilePaths.push(siteInlinedFontPath);
290
+
277
291
  return cssFilePaths
278
292
  .filter(files.fileExists)
279
293
  .map(pathJoin(assetHost, assetPath, assetDir));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amphora-html",
3
- "version": "6.0.0-7",
3
+ "version": "6.0.0-8",
4
4
  "description": "An HTML renderer for component data",
5
5
  "main": "index.js",
6
6
  "scripts": {