Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 1.15 KB

index.mdx

File metadata and controls

43 lines (32 loc) · 1.15 KB
type tutorial
unitTitle Beef up your blog
title Check in: Unit 5 - Astro API
sidebar
label
Unit 5 - Astro API
description Tutorial: Build your first Astro blog — Fetching and using data from project files to dynamically generate pages content and routes
i18nReady true
head
tag content
title
Build a blog tutorial: Unit 5 - Astro API | Docs

import Box from '/components/tutorial/Box.astro'; import Checklist from '/components/Checklist.astro'; import MultipleChoice from '/components/tutorial/MultipleChoice.astro'; import Option from '/components/tutorial/Option.astro';

Now that you have some blog posts, it's time to use Astro's API to work with your files!

Looking ahead

In this unit, you'll supercharge your blog with an index page, tag pages, and an RSS feed.

Along the way, you'll learn how to use:

  • import.meta.glob() to access data from files in your project
  • getStaticPaths() to create multiple pages (routes) at once
  • The Astro RSS package to create an RSS feed

Checklist

- [ ] I am ready to add some blog features to my Astro project!