#how to get current page title in my component without any prop? [SOLVED]
9 messages · Page 1 of 1 (latest)
A number of questions
- What title? From frontmatter or an h1/h2 on the page
- Using content collections or a CMS
- well looks like 2 do it
i did it using Astro.url.pathname
So, solved, yes?
yes
So you're picking frontmatter data from current pathname. Voila 💪🏻
Do you wanna edit your title to precede with [SOLVED]?
alright