home.social

#withastro — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #withastro, aggregated by home.social.

  1. New blog post: “Conditional JSX in Astro”.

    blog.kizu.dev/conditional-jsx-

    This is me documenting the way I am handling some of the more complex conditional rendering in Astro’s JSX. Well, not strictly _JSX_ — but its “Component Template” part of `.astro` components and assigning them to variables.

    #withAstro #AstroJS

  2. Hey, users,

    Are there any best practices, guides or similar on build setups for combining multiple astro projects in one?

    I have a website with a main page (radiki.dev)

    a blog (radiki.dev/blog)

    and multiple subprojects ( radiki.dev/project1, radiki.dev/project2 etc)

    All these share some components and CSS, but they also have their own.

    I guess I can make do with Makefiles or shell scripts, I was just wondering if there is a more idiomatic solution.

  3. prass.tech/blog/upgrading-astr

    Upgrading to Astro 5 has not been effortlessly but it was a good upgrade experience nonetheless. For a blog as small as mine the changes were minimal.

    #withastro #amblogging

  4. My base experience with Lit has been OK so far, but integration with #VSCode and #WithAstro seems to be not great -- as code completion for custom properties doesn't seem to work.

    The editor treats the web component as just a plain-old component, with nothing custom (and shows warnings about the properties). My searching hasn't provided a way to add extra typing info.

    There are an enormous number of moving parts here .... 😖

    lit.dev/

    #BuildWithLit #WebDev

  5. Anyone here use lit.dev for HTML/web components?

    (I don’t know if there’s a hashtag for it)

    What’s been your experience? Anything you like better for making the experience of writing a web component just a little nicer with little overhead?

    #WebDev #WithAstro #BuildWithLit

  6. 👋
    #astrobuild
    devs, we're thrilled to announce that CloudCannon's CMS support for Astro is out of beta!

    #withastro support includes:
    ⚡ Astro specific docs
    👌 Astro getting started guide
    ✨ New Astro theme

    Read more here 👇
    cloudcannon.com/blog/out-of-th