summaryrefslogtreecommitdiff
path: root/examples/docs/src/components/PageContent/PageContent.astro
diff options
context:
space:
mode:
authorGravatar Nate Moore <natemoo-re@users.noreply.github.com> 2022-07-23 17:23:15 -0500
committerGravatar GitHub <noreply@github.com> 2022-07-23 17:23:15 -0500
commit6e27a5fdc21276cad26cd50e16a2709a40a7cbac (patch)
tree65658fee080c5f8dfa06903cefc3d9736db6f409 /examples/docs/src/components/PageContent/PageContent.astro
parent1215e731b8a334fce364aca77bda1085f3679e57 (diff)
downloadastro-6e27a5fdc21276cad26cd50e16a2709a40a7cbac.tar.gz
astro-6e27a5fdc21276cad26cd50e16a2709a40a7cbac.tar.zst
astro-6e27a5fdc21276cad26cd50e16a2709a40a7cbac.zip
Rename Markdown util `getHeaders()` to `getHeadings()` (#4031)
* Renamed getHeaders() to getHeadings(), according to RFC #208. * chore: update changeset * fix: expose MarkdownHeading type from `astro` Co-authored-by: Félix Sanz <me@felixsanz.com> Co-authored-by: Nate Moore <nate@astro.build>
Diffstat (limited to 'examples/docs/src/components/PageContent/PageContent.astro')
-rw-r--r--examples/docs/src/components/PageContent/PageContent.astro4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/docs/src/components/PageContent/PageContent.astro b/examples/docs/src/components/PageContent/PageContent.astro
index 1d14515c1..11c130b05 100644
--- a/examples/docs/src/components/PageContent/PageContent.astro
+++ b/examples/docs/src/components/PageContent/PageContent.astro
@@ -4,14 +4,14 @@ import TableOfContents from "../RightSidebar/TableOfContents.tsx";
const { content, githubEditUrl } = Astro.props;
const title = content.title;
-const headers = content.astro.headers;
+const headings = content.astro.headings;
---
<article id="article" class="content">
<section class="main-section">
<h1 class="content-title" id="overview">{title}</h1>
<nav class="block sm:hidden">
- <TableOfContents client:media="(max-width: 50em)" {headers} />
+ <TableOfContents client:media="(max-width: 50em)" {headings} />
</nav>
<slot />
</section>