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

Add post image credit #101

Open
pranavmalvawala opened this issue May 1, 2021 · 0 comments
Open

Add post image credit #101

pranavmalvawala opened this issue May 1, 2021 · 0 comments

Comments

@pranavmalvawala
Copy link
Contributor

Hi @scttcper, Love your site, awesome job.

I actually need your help in adding an image credit for blog post images using the same markdown package we are using - rehype-react. I tried to use it but I couldn't find my way around it, so I had to use react-markdown but I don't wanna use a whole package just to add this link. You can find my implementation here https://pranavmalvawala.com/github-link, End result would look like this

Capture

I propose that we add a new field in markdown file like

imageCredit: 'Photo by [Callum Shaw](https://unsplash.com/@callumshaw)'
and then we query it in post.tsx template and just add it below that image.

Let me know what you think man.

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

1 participant