fix: adding f to the featureImage source (#35758)
<!-- Please follow this checklist and put an x in each of the boxes, like this: [x]. It will ensure that our team takes your pull request seriously. --> - [x] I have read [freeCodeCamp's contribution guidelines](https://github.com/freeCodeCamp/freeCodeCamp/blob/master/CONTRIBUTING.md). - [x] My pull request has a descriptive title (not a vague title like `Update index.md`) - [x] My pull request targets the `master` branch of freeCodeCamp. - [x] None of my changes are plagiarized from another source without proper attribution. - [x] All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.) - [x] My changes do not use shortened URLs or affiliate links. <!--If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.--> Closes #35749
This commit is contained in:
committed by
mrugesh mohapatra
parent
216e10e2b7
commit
414219965d
@ -24,7 +24,7 @@ exports.createGuideArticlePages = createPage => ({
|
|||||||
meta.featureImage = featureImage
|
meta.featureImage = featureImage
|
||||||
? featureImage.properties.src
|
? featureImage.properties.src
|
||||||
: 'https://s3.amazonaws.com/freecodecamp' +
|
: 'https://s3.amazonaws.com/freecodecamp' +
|
||||||
'/reecodecamp-square-logo-large.jpg';
|
'/freecodecamp-square-logo-large.jpg';
|
||||||
|
|
||||||
const description = head(select(htmlAst, 'element[tagName=p]'));
|
const description = head(select(htmlAst, 'element[tagName=p]'));
|
||||||
meta.description = description ? description.children[0].value : '';
|
meta.description = description ? description.children[0].value : '';
|
||||||
|
Reference in New Issue
Block a user