File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
content/videos/challenges/171-wave-function-collapse Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 47
47
"description" : " GitHub repo for expanded and corrected WFC PCB board example." ,
48
48
"image" : " wfc.jpg" ,
49
49
"urls" : {
50
- "github " : " https://github.com/CodingTrain/Wave-Function-Collapse"
50
+ "other " : " https://github.com/CodingTrain/Wave-Function-Collapse"
51
51
}
52
52
}
53
53
],
Original file line number Diff line number Diff line change @@ -383,11 +383,14 @@ function writeDescription(video) {
383
383
}
384
384
385
385
// Other Code Examples
386
- const otherCodeExamples = data . codeExamples ?. filter (
387
- ( ex ) => ! ex . urls . p5 && ! ex . urls . github
388
- ) ;
389
386
const getURL = ( urls ) =>
390
387
urls . p5 || urls . processing || urls . node || urls . other ;
388
+ const otherCodeExamples = data . codeExamples ?. filter (
389
+ ( ex ) =>
390
+ ! ex . urls . p5 &&
391
+ getURL ( ex . urls ) !== repoLink &&
392
+ ! sketchUrls . includes ( getURL ( ex . urls ) )
393
+ ) ;
391
394
if ( otherCodeExamples && otherCodeExamples . length > 0 ) {
392
395
if ( otherCodeExamples . length > 1 ) {
393
396
if ( sketchUrls ?. length > 0 || repoLink ) description += '\n' ;
You can’t perform that action at this time.
0 commit comments