diff --git a/lib/media.js b/lib/media.js index f9165f7..c107ad6 100644 --- a/lib/media.js +++ b/lib/media.js @@ -274,6 +274,20 @@ function getStyleFiles(state) { } } + // check for clay linked font files + const defaultFontPath = path.join(assetDir, 'css', '_linked-fonts._default.css'); + const siteFontPath = path.join(assetDir, 'css', `_linked-fonts.${siteStyleguide}.css`); + + // check for inlined font files + const defaultInlinedFontPath = path.join(assetDir, 'css', '_inlined-fonts._default.css'); + const siteInlinedFontPath = path.join(assetDir, 'css', `_inlined-fonts.${siteStyleguide}.css`); + + // add any default and site font css + cssFilePaths.push(defaultFontPath); + cssFilePaths.push(siteFontPath); + cssFilePaths.push(defaultInlinedFontPath); + cssFilePaths.push(siteInlinedFontPath); + return cssFilePaths .filter(files.fileExists) .map(pathJoin(assetHost, assetPath, assetDir)); diff --git a/package-lock.json b/package-lock.json index 4ad7d53..fe2b5b2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "amphora-html", - "version": "6.0.0-7", + "version": "6.0.0-8", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 98d1174..46324ea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "amphora-html", - "version": "6.0.0-7", + "version": "6.0.0-8", "description": "An HTML renderer for component data", "main": "index.js", "scripts": {