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

Creating aliases for an MDX file #30

Open
BrettJay opened this issue Jul 24, 2020 · 1 comment
Open

Creating aliases for an MDX file #30

BrettJay opened this issue Jul 24, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@BrettJay
Copy link

Really cool project!

I was having a poke through the gatsby-transformer-markdown-references package, and I notice there seems to be some code for an aliases frontmatter object.

Would it be possible for gatsby-digital-garden to make use of this aliases object to allow you to define alternative aliases in a page...

---
title: Hello World
aliases: [ 'hello world', 'alternative alias' ]
---

Lorem ipsum

..and then reference one of the alternative aliases in another page?

---
title: Another page
---
Check out [[alternative alias]].
@mathieudutour
Copy link
Owner

Yeah I have some code for that but the references are generated at a time where the frontmatter isn't loaded yet. So I need to find a solution for that

@mathieudutour mathieudutour added the enhancement New feature or request label Jul 24, 2020
oneacik pushed a commit to oneacik/gatsby-digital-garden that referenced this issue Aug 1, 2022
…e header. Added display of source meta data in note(mathieudutour#30).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants