#access title value from frontmatter
3 messages · Page 1 of 1 (latest)
Hi @mild jay. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
In Astro, you can access the frontmatter values in your Astro or Markdown files. However, using frontmatter values within the frontmatter itself, as you've shown in your example, is not supported.
Here's how you can access the title value from the frontmatter in your Astro or Markdown files:
---
title: 'Bridge Relayer API'
description: 'A reference page for the Bridge Relayer API'
---
<h1>{Astro.props.frontmatter.title}</h1>
<p>{Astro.props.frontmatter.description}</p>
In this example, Astro.props.frontmatter.title and Astro.props.frontmatter.description will access the title and description values from the frontmatter.