Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions lib/media.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down