diff options
| author | Xe Iaso <me@xeiaso.net> | 2024-05-24 16:23:34 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2024-05-24 16:23:34 -0400 |
| commit | 7c81305288926fc45aa2dcf7c2d905c6d12d9486 (patch) | |
| tree | d81c52092d5023b4a9498767253130be1d096d1c | |
| parent | 21d75e1fc5be9b06029543304cc2e49ff8b58607 (diff) | |
| download | xesite-7c81305288926fc45aa2dcf7c2d905c6d12d9486.tar.xz xesite-7c81305288926fc45aa2dcf7c2d905c6d12d9486.zip | |
internal/lume: make more robust
Signed-off-by: Xe Iaso <me@xeiaso.net>
| -rw-r--r-- | internal/lume/lume.go | 4 | ||||
| -rw-r--r-- | lume/_config.ts | 6 | ||||
| -rw-r--r-- | lume/src/events.jsx | 40 |
3 files changed, 26 insertions, 24 deletions
diff --git a/internal/lume/lume.go b/internal/lume/lume.go index 06bd79d..a575d2b 100644 --- a/internal/lume/lume.go +++ b/internal/lume/lume.go @@ -594,6 +594,10 @@ func (f *FS) mimiRefresh() { return } + if f.opt.Development { + return + } + blog, err := f.LoadProtoFeed() if err != nil { slog.Error("failed to load proto feed", "err", err) diff --git a/lume/_config.ts b/lume/_config.ts index 03df3d0..4b9453d 100644 --- a/lume/_config.ts +++ b/lume/_config.ts @@ -9,9 +9,9 @@ import tailwindcss from "lume/plugins/tailwindcss.ts"; import postcss from "lume/plugins/postcss.ts"; import sitemap from "lume/plugins/sitemap.ts"; import readInfo from "lume/plugins/reading_info.ts"; -import feed from "lume/plugins/feed.ts"; import annotateYear from "./plugins/annotate_year.ts"; +import feed from "./plugins/feed.ts"; //import pagefind from "lume/plugins/pagefind.ts"; //import _ from "npm:@pagefind/linux-x64"; @@ -83,7 +83,7 @@ site.use(feed({ items: { title: "=title", description: "=desc", - image: (data) => { + /*image: (data) => { if (data.hero && data.hero.file) { return `https://cdn.xeiaso.net/file/christine-static/hero/${data.hero.file}.jpg`; } @@ -93,7 +93,7 @@ site.use(feed({ } return undefined; - }, + },*/ }, })); site.use(mdx({ diff --git a/lume/src/events.jsx b/lume/src/events.jsx index 4a313b2..6cc0efd 100644 --- a/lume/src/events.jsx +++ b/lume/src/events.jsx @@ -5,27 +5,25 @@ export const layout = "base.njk"; export const date = "2012-12-31"; export const desc = "A list of the upcoming events that I plan to attend and what I'll do there."; -export default ({ events }) => { - if (events.events === undefined) { - return ( - <> - <h1 className="text-3xl mb-4">Events</h1> - <p> - I don't have any events planned right now or my events API is down. Check back later! - </p> - </> - ); - } - - return ( - <> - <h1 className="text-3xl mb-4">Events</h1> - - <p className="my-4">Where in the world is Xe Iaso?</p> - +export default ({ events }) => ( + <> + <h1 className="text-3xl mb-4">Events</h1> + <p className="my-4">Where in the world is Xe Iaso?</p> + {events.events === undefined ? ( + <p className="my-4"> + 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! + </p> + ) : ( <div class="grid grid-cols-1 md:grid-cols-2 gap-4"> {events.events.map((event) => EventCard(event))} </div> - </> - ); -}
\ No newline at end of file + )} + + <div className="my-4 prose"> + <p> + 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. + </p> + <p>Please note that all conferences and meetups I attend require a publicly posted code of conduct.</p> + </div> + </> +);
\ No newline at end of file |
