-
Notifications
You must be signed in to change notification settings - Fork 17
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
Implement Open Graph protocol to increase social media presence #25
Comments
I would like to work on the following issue. Thank you very much. |
@ANURADHAJHA99 are you working on this? |
@GraceChiamaka Yes, I am working on it. |
@majordwarf I was going through the layout component and started working on introducing OGP, but I am having certain issues understanding how should I introduce the basic metadata? Can you please provide me a small example, or help me understand it? |
You can look at how meta-data for blog and modules are stored in their respective markdown files as frontmatter. We need to implement OGP to take that data dynamically to make the shared post on social media with appropriate metadata being shown. |
can we use OGP in markdown modules? |
Nope, we currently have 200+ modules. Updating each |
No, the only thing that needs to change is the So the |
Ok, got it now! Thank you very much for your help. |
Sorry, I have a doubt, we are suppose to pass the child header component with the variables in the layout component such that it replaces the variable in the header parent component? |
This layout contains Helmet as stated in the first message of the issue itself. It handles how meta-data tags are handled on the website. Currently all I had in mind was to pass props from child like the blog template, post template to the current layout component and that will fill out the variables in Helment component. But not having actually work on it, it might still needs some research. If passing props won't work we might have to rewrite the templates written already. |
so we are suppose to change the props in the blog.jsx and post.jsx? |
Essentially I meant, we are supposed to introduce OGP metadata in the blog template and post template? |
Yes but if you want to directly implement OGP in their respective template, they will need restructuring. Eliminating the need for layout component in them. Or else pass some props to layout if you're using the layout component. |
There are many other components within the layout components, what should I do to them? |
Every child component needs to have the tags as said earlier. |
Open Graph protocol (OGP) gives you control of how website/page specifc data travels to third-party sites. Providing much better social media presence along with optimized SEO. Right now we are using Helmet to do manage the head and meta tags for the pages. The main
layout
component would require some restructuring along with additional changes to other pages to implement OGP as currently thehead
is being rendered inside body, which works but is a bad practice.You can learn more about OGP here.
Things to be done:
layout
component and other pages to place head section appropriately.The text was updated successfully, but these errors were encountered: