The code and data behind xeiaso.net
5
fork

Configure Feed

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

internal/lume: make more robust

Signed-off-by: Xe Iaso <me@xeiaso.net>

Xe Iaso 7c813052 21d75e1f

+26 -24
+4
internal/lume/lume.go
··· 594 594 return 595 595 } 596 596 597 + if f.opt.Development { 598 + return 599 + } 600 + 597 601 blog, err := f.LoadProtoFeed() 598 602 if err != nil { 599 603 slog.Error("failed to load proto feed", "err", err)
+3 -3
lume/_config.ts
··· 9 9 import postcss from "lume/plugins/postcss.ts"; 10 10 import sitemap from "lume/plugins/sitemap.ts"; 11 11 import readInfo from "lume/plugins/reading_info.ts"; 12 - import feed from "lume/plugins/feed.ts"; 13 12 14 13 import annotateYear from "./plugins/annotate_year.ts"; 14 + import feed from "./plugins/feed.ts"; 15 15 16 16 //import pagefind from "lume/plugins/pagefind.ts"; 17 17 //import _ from "npm:@pagefind/linux-x64"; ··· 83 83 items: { 84 84 title: "=title", 85 85 description: "=desc", 86 - image: (data) => { 86 + /*image: (data) => { 87 87 if (data.hero && data.hero.file) { 88 88 return `https://cdn.xeiaso.net/file/christine-static/hero/${data.hero.file}.jpg`; 89 89 } ··· 93 93 } 94 94 95 95 return undefined; 96 - }, 96 + },*/ 97 97 }, 98 98 })); 99 99 site.use(mdx({
+19 -21
lume/src/events.jsx
··· 5 5 export const date = "2012-12-31"; 6 6 export const desc = "A list of the upcoming events that I plan to attend and what I'll do there."; 7 7 8 - export default ({ events }) => { 9 - if (events.events === undefined) { 10 - return ( 11 - <> 12 - <h1 className="text-3xl mb-4">Events</h1> 13 - <p> 14 - I don't have any events planned right now or my events API is down. Check back later! 15 - </p> 16 - </> 17 - ); 18 - } 19 - 20 - return ( 21 - <> 22 - <h1 className="text-3xl mb-4">Events</h1> 23 - 24 - <p className="my-4">Where in the world is Xe Iaso?</p> 25 - 8 + export default ({ events }) => ( 9 + <> 10 + <h1 className="text-3xl mb-4">Events</h1> 11 + <p className="my-4">Where in the world is Xe Iaso?</p> 12 + {events.events === undefined ? ( 13 + <p className="my-4"> 14 + I don't have any events planned right now or my events API is down. Check back later or <a href="/contact">let me know</a> if you see this message in error! 15 + </p> 16 + ) : ( 26 17 <div class="grid grid-cols-1 md:grid-cols-2 gap-4"> 27 18 {events.events.map((event) => EventCard(event))} 28 19 </div> 29 - </> 30 - ); 31 - } 20 + )} 21 + 22 + <div className="my-4 prose"> 23 + <p> 24 + If you'd like me to speak at an event, please <a href="/contact">contact me</a>! I'm always looking for new opportunities to share my knowledge and experiences. I'm also available for interviews, podcasts, and other media appearances. 25 + </p> 26 + <p>Please note that all conferences and meetups I attend require a publicly posted code of conduct.</p> 27 + </div> 28 + </> 29 + );