Skip to content

Utilize Open Graph Meta Tags #3

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

Open
voidstar0 opened this issue May 13, 2022 · 5 comments
Open

Utilize Open Graph Meta Tags #3

voidstar0 opened this issue May 13, 2022 · 5 comments

Comments

@voidstar0
Copy link

Open Graph meta tags provide useful information to sites looking to embed posts from your site. Information such as the title, author, publication date, etc.. are already present in the Post class so the change would be quite simple.

If this is a change you'd like, I can create the PR for this.

@alii
Copy link
Owner

alii commented May 14, 2022

Brilliant idea! If you would like to create a PR, that would be totally awesome! :)

@nexxeln
Copy link

nexxeln commented May 28, 2022

I can create a PR for this. @alii do you also want images related to the post to be in the embeds?

PS: Really good blog, I will use it as mine too. thanks :)

@alii
Copy link
Owner

alii commented May 29, 2022

Yeah that would be cool. Although perhaps it would be better if we manually specified which image to use in the post's config. You can type it as NextStaticImage (or something like that) and access via .src which would allow the following

import image from './image.png';

export class MyBoringBlogPost extends Post {
	public ogImage = image;
	// ...
}

@nexxeln
Copy link

nexxeln commented May 29, 2022

Yeah I was thinking along the same lines. I'll try to implement this tomorrow (12 am here rn).

@alii
Copy link
Owner

alii commented May 29, 2022

no rush! thank you so much :)

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

3 participants