Essential CSS
JavaScript Roadmap
Learn JavaScript
Mastering Web Typography
Practical Astro
Understanding Async JS
Unorthodox Tailwind
API Masterclass
Build and Deploy
The Beginner Freelancer
Real World Node
Profile Billing Logout
Practical Astro
Lesson Plan
  1. Content Systems
    1. Introduction
    2. An import alias
    3. Using Markdown
    4. Markdown extended
    5. Markdown component
    6. Markdown component in frameworks
    7. Content collections made easy
    8. Basic blogs
    9. Blogs made easy
    10. Prev/Next navigation
    11. Pagination made easy
    12. Better tag pages
    13. Paginated tag pages
    14. Markdown layouts
    15. Partials
    16. JS over JSON Data
    17. Dynamic 404 pages
    18. Putting everything together
    19. Other useful systems
  2. Image Systems
    1. Introduction
    2. Images are complicated because of this
    3. Astro's Image component
    4. Astro's Picture component
    5. Improvements over Astro's Image and Picture Components
    6. Images in Markdown and MDX
    7. Images in framework components
    8. Background images
    9. Art Direction with Astro
    10. Videos without layout shifts
    11. GIF Replacements and background video
    12. SVGs and icons
    13. SVG backgrounds
    14. Adding noise to images
    15. Asset caching on GitHub Actions
    16. Putting everything together
    17. Other useful systems

Introduction

1m:16s

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:

  1. Using Markdown
  2. Using content collections
  3. Using partials
  4. Creating a blog
  5. Creating tags
  6. Handling pagination
  7. 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 HTML wrapper, JSON-LD components 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.

Terminal window
npm install @splendidlabz/astro

Once 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.

Terminal window
SPLENDID_LICENSE_KEY=your-licence-key

Then 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!