amphora-html 6.0.0-6 → 6.0.0-dev.0

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 (3) hide show
  1. package/lib/media.js +9 -1
  2. package/package.json +1 -1
  3. package/.envrc +0 -2
package/lib/media.js CHANGED
@@ -274,6 +274,14 @@ function getStyleFiles(state) {
274
274
  }
275
275
  }
276
276
 
277
+ // check for clay compile linked? clay compile 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
+ // add any default and site font css
282
+ cssFilePaths.push(defaultFontPath);
283
+ cssFilePaths.push(siteFontPath);
284
+
277
285
  return cssFilePaths
278
286
  .filter(files.fileExists)
279
287
  .map(pathJoin(assetHost, assetPath, assetDir));
@@ -409,7 +417,7 @@ function injectScriptsAndStyles(state) {
409
417
  if (!locals.edit) {
410
418
  mediaMap.styles = combineFileContents(mediaMap.styles, 'public/css', '/css/', STYLE_TAG);
411
419
  mediaMap.scripts = !!mediaMap.manifestAssets && mediaMap.manifestAssets.length > 0
412
- ? injectTags(mediaMap.manifestAssets, locals.site, DEFER_SCRIPT_TAG)
420
+ ? injectTags(mediaMap.manifestAssets, locals.site, SCRIPT_TAG)
413
421
  : combineFileContents(mediaMap.scripts, 'public/js', '/js/', SCRIPT_TAG);
414
422
  } else {
415
423
  mediaMap.styles = module.exports.editStylesTags ? injectTags(mediaMap.styles, locals.site, STYLE_TAG) : combineFileContents(mediaMap.styles, 'public/css', '/css/', STYLE_TAG);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amphora-html",
3
- "version": "6.0.0-6",
3
+ "version": "6.0.0-dev.0",
4
4
  "description": "An HTML renderer for component data",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/.envrc DELETED
@@ -1,2 +0,0 @@
1
- use node 14
2
- layout node