Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use in pure .md #94

Open
SamuelLHuber opened this issue Mar 16, 2024 · 1 comment
Open

How to use in pure .md #94

SamuelLHuber opened this issue Mar 16, 2024 · 1 comment

Comments

@SamuelLHuber
Copy link

SamuelLHuber commented Mar 16, 2024

How can I use astro-seo in markdown files?

I am using Astro Starlight and would love to display custom tags defined in my Frontmatter.

For example

<meta property="fc:frame" content="vNext" />

when using Starlight to extend head I can't get it in there as in my .md

title: "My sample .md"
head:
  - tag: meta
    content: vNext

doesn't give me the equivalent as it's missing property

How would I do this with astro-seo? in .astro pages I could use the SEO component and pass the extended meta tags though I can't use components in .md files and would love to do it in frontmatter

is there a solution potentially with just pure .md? or if not then with .mdx?

@migsar
Copy link

migsar commented Jul 10, 2024

This is related to Starlight and not to astro-seo, you can use any frontmatter property in the layout you create for rendering your markdown files. I am using astro-seo from md files for my blog without any problem.

I am not familiar with Starlight but take a look at Head.astro in their repo as it is there where the seo info is inserted, but I don't think they are using astro-seo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants