this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update navList to allow for non url headings. Also update the list to be more accurate

+32 -9
+9 -2
src/components/generic/NavEntry.astro
··· 13 13 { 14 14 data.map((x) => ( 15 15 <li> 16 - <a href={`${root}${x.slug}`}>{x.name}</a> 16 + {x.slug ? ( 17 + <a href={`${root}${x.slug}`}>{x.name}</a> 18 + ) : ( 19 + <span>{x.name}</span> 20 + )} 17 21 {x.children && x.children.length > 0 ? ( 18 - <Astro.self root={`${root}${x.slug}`} data={x.children} /> 22 + <Astro.self 23 + root={`${root}${x.slug ? x.slug : ""}`} 24 + data={x.children} 25 + /> 19 26 ) : null} 20 27 </li> 21 28 ))
+1 -1
src/content/config.ts
··· 29 29 }); 30 30 31 31 const baseNav = z.object({ 32 - slug: z.string(), 32 + slug: z.string().or(z.literal(false)), 33 33 name: z.string(), 34 34 }); 35 35
+22 -6
src/content/navList.json
··· 10 10 "children": [] 11 11 }, 12 12 { 13 - "slug": "/testing", 14 - "name": "Testing", 13 + "slug": false, 14 + "name": "Socials", 15 15 "children": [ 16 16 { 17 - "slug": "/123", 18 - "name": "123", 17 + "slug": "https://pdsls.dev/at://did:plc:4zht3z4caxwrw3dlsybodywc", 18 + "name": "atproto (pdsls)", 19 + "children": [ 20 + { 21 + "slug": "https://deer.social/profile/did:plc:4zht3z4caxwrw3dlsybodywc", 22 + "name": "Bluesky", 23 + "children": [] 24 + }, 25 + { 26 + "slug": "https://tangled.sh/@vielle.dev", 27 + "name": "Tangled.sh", 28 + "children": [] 29 + } 30 + ] 31 + }, 32 + { 33 + "slug": "https://what-if-doctor-who-was-yuri-yaoi.tumblr.com/", 34 + "name": "Tumblr", 19 35 "children": [] 20 36 }, 21 37 { 22 - "slug": "/maoii", 23 - "name": "Me!", 38 + "slug": "https://github.com/afterlifepro/", 39 + "name": "Github", 24 40 "children": [] 25 41 } 26 42 ]