New Astro Content Collections First Look

Поделиться
HTML-код
  • Опубликовано: 4 фев 2025

Комментарии • 45

  • @rohangodha6725
    @rohangodha6725 3 месяца назад +19

    something I contributed is that you can pass custom parsing functions to the file loader, which lets you use toml or csv files as a data source!

  • @k16e
    @k16e 3 месяца назад +1

    Astro's just charming. It's the love you can't stop loving. Game-changer.

  • @bobfluencer
    @bobfluencer 3 месяца назад +5

    really cool how datasources and displaying the data is seperated so cleanly. Would be cool if once could also use those loaders dynamically instead of only build time.

    • @CodinginPublic
      @CodinginPublic  3 месяца назад +1

      You can with SSR!

    • @bobfluencer
      @bobfluencer 3 месяца назад

      @@CodinginPublic oh yeah right! does that mean I can also use the loaders in an astro endpoint and then acess the data dynamically via a svelte/react component?

    • @johannesbader9849
      @johannesbader9849 Месяц назад +1

      ​@CodinginPublic No, content collections are only updated at build time, even in SSR mode.

  • @jjaimealeman
    @jjaimealeman 3 месяца назад +1

    Whoa 😮
    Keeps getting better & better

  • @arturkre5793
    @arturkre5793 3 месяца назад

    i waited sooo long for this as i never wanted to just use MD files in the project itself but wanted to use this syntactic sugar for 3rd party data - finally !

  • @TDSousa
    @TDSousa 3 месяца назад +1

    Do you have any tutorials on how to integrate an Astro blog with a CMS such as Sanity or Strapi, from start to finish? Thanks.

  • @aarontalua9456
    @aarontalua9456 3 месяца назад +2

    How did you instantly console log "posts" at 3:26? That's a pretty neat feature. Is that exclusive to astro?

    • @CodinginPublic
      @CodinginPublic  3 месяца назад +1

      VSCode extension, turbo console log

  • @markokraljevic1590
    @markokraljevic1590 Месяц назад

    is there any example how to rename id to slug directly in config?

  • @co0lxer
    @co0lxer 3 месяца назад +1

    Could you please make a video: how to make an image lightbox and also gallery in astro?

    • @CodinginPublic
      @CodinginPublic  3 месяца назад

      I'll consider it. The nice thing is because you can pull in any framework UI, pretty much any tutorial will work in Astro. And if you're using plain HTML/CSS, it's even easier :)

  • @bbqchickenrobot3
    @bbqchickenrobot3 2 месяца назад +1

    My only gripe w/ Astro and JS frameworks in general is the errors and the meaningfulness around them suck. Its unfortunate.

    • @CodinginPublic
      @CodinginPublic  2 месяца назад

      Huh. That’s interesting. I’ve had a very different experience, especially since 4.0. They massively improved the error states and I’ve been much happier. Interested in your perspective more.

  • @ahmadumar9387
    @ahmadumar9387 3 месяца назад +1

    hi CIP, i'm not a js developer, but i love the way you explain astro issues, do you think it's possible to use astro with tailwind, alpinejs and htmx ... it's according me a amazing stack :), what do you think?

    • @josselinhanel6327
      @josselinhanel6327 2 месяца назад +1

      I think we can do so much stuff with this stack, that's the one I choosed too, still learning how to use everything because web developping is quite recent for me but I feel this stack is underappreciated so I want to prove we can do great things in an easier way with it.

  • @binho85
    @binho85 3 месяца назад

    I dont know if I'm doing something wrong, but it seams to fail when you activate the contentCollectionCache with contentLayer

  • @SirJagerYT
    @SirJagerYT 3 месяца назад +1

    Can you please tell us "How to render mdx/mdoc with custom components, markdown content fetched from github content repository ? "

    • @Phanboy
      @Phanboy 3 месяца назад

      If your codebase lives in the same repo as the markdown, do you even need to fetch it? Or are you saying a strictly content repo

    • @SirJagerYT
      @SirJagerYT 3 месяца назад +1

      @@Phanboy I am saying seperate content repo for notes, projects, blog posts. Where as code lives in seperate repo. BTW stopped looking, Currently keeping content and src code in same repo for now, unti i find better solution.
      Problem is once u seperate content and src code, you cant use MDX Components, and can not get , you will have to use set:html in order to render compiled html.

  • @jitxhere
    @jitxhere 3 месяца назад

    Really awesome content

  • @HeyNoah
    @HeyNoah 3 месяца назад

    Super cool!

  • @miguderp
    @miguderp 3 месяца назад +1

    The future is bright

  • @jaysonpamittan7530
    @jaysonpamittan7530 3 месяца назад

    Awesome!

  • @jjdbrrr
    @jjdbrrr 3 месяца назад

    I thought for a second that you pronounced Stripe as Strapi and was trying to figure out why you'd pronounce it like that :D :D

  • @cmnweb
    @cmnweb 3 месяца назад

    Hi from México, i have your course and i'm learning the module 9, the astrodb, but the news is that astro studio will be shutdown, you are planning to update this secction to use Turso or any other service?, sorry for the off topic!

    • @CodinginPublic
      @CodinginPublic  3 месяца назад +1

      Yep! It’s just the hosting component, so I’ll swap that out in my first round of updates :)

    • @CodinginPublic
      @CodinginPublic  3 месяца назад +1

      Hope you’re enjoying the course!

    • @cmnweb
      @cmnweb 3 месяца назад

      Yes, is a very good course and have a lot of content, i'm very happy with all the info, just kinda hard for me to follow sometimes because you speak fast 😅

    • @CodinginPublic
      @CodinginPublic  3 месяца назад

      @@cmnweb lol. Sorry! Pacing is the most difficult thing about videos ha

  • @gonzalososa92
    @gonzalososa92 3 месяца назад

    bro i want your hat is so cool

    • @CodinginPublic
      @CodinginPublic  3 месяца назад

      They do have a swag shop! shop.astro.build/ But I don't think this hat is for sale?

  • @afuzzybearsyoutubechannel2812
    @afuzzybearsyoutubechannel2812 3 месяца назад

    💚🔥💚

  • @kellyaquinastom
    @kellyaquinastom 3 месяца назад

    Watch out wordpres 😂