File tree Expand file tree Collapse file tree 2 files changed +35
-10
lines changed Expand file tree Collapse file tree 2 files changed +35
-10
lines changed Original file line number Diff line number Diff line change @@ -50,13 +50,35 @@ const bannerEntry = await getEntry("banner", currentLocale);
50
50
<div class =" lg:col-start-2 mt-xl lg:mt-0" >
51
51
<div class =" mb-5" id =" socials-footer-category" >{ t (" Socials" )} </div >
52
52
<ul aria-labelledby =" socials-footer-category" >
53
- <li ><a href =" https://github.com/processing/p5.js" >GitHub</a ></li >
54
- <li ><a href =" https://www.instagram.com/p5xjs/" >Instagram</a ></li >
55
- <li ><a href =" https://twitter.com/p5xjs" >X</a ></li >
56
- <li ><a href =" https://www.youtube.com/@ProcessingFoundation" >YouTube</a ></li >
57
- <li ><a href =" https://discord.gg/SHQ8dH25r9" >Discord</a ></li >
58
53
<li >
59
- <a href =" https://discourse.processing.org/c/p5js" >{ t (" Forum" )} </a >
54
+ <a href =" https://github.com/processing/p5.js" target =" _blank" rel =" noopener noreferrer" title =" Opens in new tab" >
55
+ GitHub ↗
56
+ </a >
57
+ </li >
58
+ <li >
59
+ <a href =" https://www.instagram.com/p5xjs/" target =" _blank" rel =" noopener noreferrer" title =" Opens in new tab" >
60
+ Instagram ↗
61
+ </a >
62
+ </li >
63
+ <li >
64
+ <a href =" https://twitter.com/p5xjs" target =" _blank" rel =" noopener noreferrer" title =" Opens in new tab" >
65
+ X ↗
66
+ </a >
67
+ </li >
68
+ <li >
69
+ <a href =" https://www.youtube.com/@ProcessingFoundation" target =" _blank" rel =" noopener noreferrer" title =" Opens in new tab" >
70
+ YouTube ↗
71
+ </a >
72
+ </li >
73
+ <li >
74
+ <a href =" https://discord.gg/SHQ8dH25r9" target =" _blank" rel =" noopener noreferrer" title =" Opens in new tab" >
75
+ Discord ↗
76
+ </a >
77
+ </li >
78
+ <li >
79
+ <a href =" https://discourse.processing.org/c/p5js" target =" _blank" rel =" noopener noreferrer" title =" Opens in new tab" >
80
+ { t (" Forum" )} ↗
81
+ </a >
60
82
</li >
61
83
</ul >
62
84
</div >
@@ -65,3 +87,4 @@ const bannerEntry = await getEntry("banner", currentLocale);
65
87
{ bannerEntry && ! bannerEntry .data .hidden && (<Banner entry = { bannerEntry } />)}
66
88
67
89
<style ></style >
90
+
Original file line number Diff line number Diff line change @@ -140,10 +140,12 @@ const jumpCategoryData = categoryData.length === 1
140
140
? [... categoryData , ... categoryData [0 ].subcats ]
141
141
: categoryData ;
142
142
143
- const pageJumpToLinks: JumpToLink [] = jumpCategoryData .map ((category ) => ({
144
- label: category .name as string ,
145
- url: ` #${category .name } ` ,
146
- }));
143
+ const pageJumpToLinks: JumpToLink [] = jumpCategoryData
144
+ .filter ((category ) => !! category .name ) // REMOVE undefined ones
145
+ .map ((category ) => ({
146
+ label: category .name as string ,
147
+ url: ` #${category .name } ` ,
148
+ }));
147
149
148
150
const pageJumpToState: JumpToState = {
149
151
links: pageJumpToLinks ,
You can’t perform that action at this time.
0 commit comments