Welcome to Content Systems!
In this module, you will learn everything you need to know about handling content for real-world situations in Astro. This includes:
- Using Markdown
- Using content collections
- Using partials
- Creating a blog
- Creating tags
- Handling pagination
- And many more!
We are primarily dealing with static content in this chapter. The other modules that are relevant and important are:
- Image Systems — For handling images, videos, and SVGs easily
- SEO and Discovery — For building your
HTMLwrapper,JSON-LDcomponents for SEO, and OG images for social media. - Forms & API Routes — Helps you handle almost every server-side operation you’ll need (except database and authentication).
Splendid Astro
In this module, we’ll use some functions and components from Splendid Astro that make content a lot easier to handle. Some of them are paid features that need a licence key to run. You can find instructions about your licence key (bundled together with this purchase) below.
To get started, install the @splendidlabz/astro package.
npm install @splendidlabz/astroOnce the package is installed, add your licence key to .env. You’ll find it in the email titled “Your Splendid Labz licence key”, and you can copy it again from your account page anytime.
SPLENDID_LICENSE_KEY=your-licence-keyThen you can import the components from the content subfolder.
---import { processFiles } from '@splendidlabz/astro/content'---You’ll learn more about each of these components and plugins as we go through the module.
Let’s begin!
Welcome! Unfortunately, you don’t have access to this lesson. To get access, please purchase the course or enroll in Magical Dev School.
Unlock this lesson