Skip to content

Commit

Permalink
Temp fix for feed display images until further looking into of the Je…
Browse files Browse the repository at this point in the history
…kyll build system when deployed
  • Loading branch information
howard-e committed May 31, 2023
1 parent 2a28c37 commit d397d3b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ aria.FeedDisplay.prototype.renderItemData = function (itemData) {
'alt="' +
itemData.rating +
' stars" ' +
'src="imgs/rating-' +
'src="../../../../../content-assets/wai-aria-practices/patterns/feed/examples/imgs/rating-' +
itemData.rating +
'.png">' +
'</div>';
Expand Down
6 changes: 6 additions & 0 deletions scripts/pre-build/library/transformOtherAsset.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ const transformAsset = async (sourcePath, sourceContents) => {
"displayOption: 'popup', // Line edited by pre-build script"
);
}
if (sourcePath.endsWith("content/patterns/feed/examples/js/feedDisplay.js")) {
return sourceContents.replace(
"'src=\"imgs/rating-' +",
"'src=\"../../../../../content-assets/wai-aria-practices/patterns/feed/examples/imgs/rating-' +"
)
}
return sourceContents;
};

Expand Down

0 comments on commit d397d3b

Please sign in to comment.