You may not ACTUALLY understand Content Collections…

  Рет қаралды 13,047

Coding in Public

Coding in Public

Күн бұрын

Пікірлер: 43
@CynthiaEbert-v6z
@CynthiaEbert-v6z Ай бұрын
This content really helped me grasp the details!
@shiningdawn7871
@shiningdawn7871 11 ай бұрын
Thank you for this video, ive spent hours trying to figure out why my astro wasnt building images from the frontmatter, works now, cheers
@CodinginPublic
@CodinginPublic 11 ай бұрын
You're welcome!
@bynneh
@bynneh Жыл бұрын
Thanks Chris! How is your Astro course shaping up? Do you have an estimated release date?
@CodinginPublic
@CodinginPublic Жыл бұрын
Early release will be by the end of the year!
@jjaimealeman
@jjaimealeman Жыл бұрын
​@@CodinginPublic🤩 woo-woooo, SO excited!!!
@quasi_stellor
@quasi_stellor 3 ай бұрын
Great video! I really like the way you explain and the tone of your voice. Thanks!
@CodinginPublic
@CodinginPublic 3 ай бұрын
Glad you enjoyed it! Thanks for saying something!
@DanteMishima
@DanteMishima Жыл бұрын
The explanation that I needed. Thank you Chris! (although, I'm tired of hearing "typesafety")
@CodinginPublic
@CodinginPublic Жыл бұрын
lol
@CookingForAlba-qh8nq
@CookingForAlba-qh8nq Жыл бұрын
This course will be needed, quality explanations! I'm currently converting an application from Next.js -> Astro and all of the different errors are killing me as there's no help to get from stack overflow or similar. Difficulties of developing on the frontier frameworks i guess. Do you know how to handle sub-folders/sub-paths for your content collections? I have a "articles" folder in the content folder filled with .mdx files , and i want to have another sub-folder in it called "performance" (content/articles/performance/*.mdx) but when i try to create a file and navigate there (test.mdx) i get: Expected "slug" to match "[^\/#\?]+?", but got "performance/test". Any ideas? Thanks for all the good content!
@CodinginPublic
@CodinginPublic Жыл бұрын
I'd check out the Discord. Lots of very smart people who are quick to help! Yes, so you’ll need to think about Content Collections as a way to organize the data, but NOT a structure to how the data is displayed. Since Astro has page-based routing, you'll need to have files in your pages directory that consume the Content Collection information and display it. If I'm understanding you correctly, I'd likely either use the nested directories in an articles collection (similar to the locale folders in the docs) or I'd filter based on a frontmatter property like "type: performance" … when you get the collection, you can filter by that type. Hope that pushes you in the right direction.
@jjaimealeman
@jjaimealeman Жыл бұрын
Absolutely SSSOOO looking forward to your upcoming course 🥰
@CodinginPublic
@CodinginPublic Жыл бұрын
Me too! Hoping to make a TON of progress next week!
@Goyo_MGC
@Goyo_MGC Жыл бұрын
Content collections are so versatile. I wonder if in a big project it would be sustainable and could somehow replace database for static content. It offload the browser render time for a longer build time which seems a great alternative. I wonder if there is a tradeoff with having a lot of files generated at build time with SSG instead of using SSR. Maybe it will cost more to host I wonder.
@CodinginPublic
@CodinginPublic Жыл бұрын
Content Collections are the best! :) I'm sure at some point you'd hit a cost to host…but I can't imagine how big that project would have to be.
@jlkinley
@jlkinley Жыл бұрын
Thank you so much for this content. Well done. I know that you sing the praises of these content collections, but why am I having a tough time getting my head around multiple json files in a directory vs one json file? It seems to me for certain things, one file is easier to manage. This is really making me rethink content collections. I guess for one thing, without the content collections you'd lose that ability to reference other collections.
@CodinginPublic
@CodinginPublic 11 ай бұрын
Yeah, when you have a smaller amount of content, a single json file is great. You do miss the ability to reference and then as it scales, the separate files personally help me stay organized.
@borbelyviktor3057
@borbelyviktor3057 7 ай бұрын
Amazing video about Astro collections! Thanks!
@CodinginPublic
@CodinginPublic 7 ай бұрын
Glad you enjoyed it!
@unity_12
@unity_12 Жыл бұрын
It's brilliant and a very lightening tool! Will there be a video on such cms as keyStatic or Decap Cms? Their miracle is that they immediately create md files in our project and push them to repo github.
@CodinginPublic
@CodinginPublic Жыл бұрын
Planning on something with keystatic once I get a chance to use it :)
@ursochurrasqueira
@ursochurrasqueira 10 ай бұрын
10/10 content, never thought relations are viable in markdown
@CodinginPublic
@CodinginPublic 10 ай бұрын
It’s amazing!
@DevMr-e1x
@DevMr-e1x Жыл бұрын
Hi .Can you give me the font of Vscode please
@CodinginPublic
@CodinginPublic Жыл бұрын
Cascadia Code (link in description)
@dev-akeel
@dev-akeel 7 ай бұрын
Can I sponsor your ASTRO course here on youtube?
@CodinginPublic
@CodinginPublic 7 ай бұрын
My course is only available over at learnastro.dev. I may post the first module here? But the rest will not be available on YT.
@dev-akeel
@dev-akeel 7 ай бұрын
@@CodinginPublic ok means I can't sponsor
@trejohnson7677
@trejohnson7677 8 ай бұрын
kinda crazy how well this works with obsidian.
@CodinginPublic
@CodinginPublic 8 ай бұрын
Totally! That’s the beauty of obsidian. Just a collection of markdown files!
@trejohnson7677
@trejohnson7677 8 ай бұрын
Would be nice to see integrations with SSE… hm…
@CodinginPublic
@CodinginPublic 8 ай бұрын
Let me know if you do something like this. That'd be interesting!
@aspirin02
@aspirin02 Жыл бұрын
why were you in a hurry? i hope paid course wont be made in a hurry. or is this because Astro is fast moving, so everything has to be fast-paced?
@CodinginPublic
@CodinginPublic Жыл бұрын
Just wanted to do a faster one since I’ve already done a slow walkthrough for content collections earlier this year that was much slower and didn’t cover as much. There are several new items with content collections I wanted to show off, but didn’t want it to take 1.5 hours :)
@CodinginPublic
@CodinginPublic Жыл бұрын
Course should be beginner to intermediate aimed.
@MarkVolkmann
@MarkVolkmann 10 ай бұрын
I like the fast pace! For those that don’t there is always the pause button and you can adjust the speed.
How to work with data in Astro
26:04
Coding in Public
Рет қаралды 24 М.
Astro Crash Course in 20 Minutes!
22:07
Coding in Public
Рет қаралды 59 М.
When mom gets home, but you're in rollerblades.
00:40
Daniel LaBelle
Рет қаралды 134 МЛН
бабл ти гель для душа // Eva mash
01:00
EVA mash
Рет қаралды 7 МЛН
1, 2, 3, 4, 5, 6, 7, 8, 9 🙈⚽️
00:46
Celine Dept
Рет қаралды 66 МЛН
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 35 МЛН
Astro. Теперь сайты моментальные. Быстрый курс
59:26
Владилен Минин
Рет қаралды 50 М.
Typesafe Markdown With Astro Content Collections
12:32
Learn With Jason
Рет қаралды 6 М.
React Crash Course | Learn React Quickly | In 80 Minutes
1:17:07
WolfDenCode
Рет қаралды 4,2 М.
Astro makes websites faster & easier to build
22:55
Kevin Powell
Рет қаралды 124 М.
Astro Actions (First Look!)
13:15
Coding in Public
Рет қаралды 8 М.
Astro’s Big Announcement!
28:50
Coding in Public
Рет қаралды 9 М.
Content Collections API Deep Dive
53:06
Coding in Public
Рет қаралды 16 М.
The Vim Experience
45:19
Bog
Рет қаралды 139 М.
(NEW!) Optimize Image Features in Astro 3.0
18:32
Coding in Public
Рет қаралды 8 М.
C Programming Tutorial for Beginners
3:46:13
freeCodeCamp.org
Рет қаралды 14 МЛН
When mom gets home, but you're in rollerblades.
00:40
Daniel LaBelle
Рет қаралды 134 МЛН