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

feat: automatically publish latest blog posts to website #12277

Closed
d1onys1us opened this issue Jan 9, 2023 · 2 comments
Closed

feat: automatically publish latest blog posts to website #12277

d1onys1us opened this issue Jan 9, 2023 · 2 comments
Assignees

Comments

@d1onys1us
Copy link
Contributor

d1onys1us commented Jan 9, 2023

summary

on our website homepage we show the latest 3 blog posts. right now, this is a manual process that we have to update the homepage with the latest blog posts. it would be much better if we could automate this process.

currently, it does not look like mirror.xyz has an API. however one could probably use something like CURL or fetch, etc. to get the latest blog posts dynamically from https://mirror.xyz/labs.taiko.eth . Or use this: https://dev.mirror.xyz/GjssNdA6XK7VYynkvwDem3KYwPACSU9nDWpR5rei3hw

acceptance criteria

  • new taiko blog posts on mirror.xyz automatically update the "recent blog posts" on taiko.xyz
@d1onys1us d1onys1us changed the title automatically publish latest blog posts to website feat: automatically publish latest blog posts to website Jan 10, 2023
@d1onys1us d1onys1us self-assigned this Jan 18, 2023
@Jaapiehetaapie
Copy link
Contributor

Jaapiehetaapie commented Jan 19, 2023

Hi there, i'm able to get some of the information dynamically. However i'm not sure how to get the image from imgix (i do have an imgURI). I also can't retrieve the direct author name, but i could set up a dictonary (manualy) storing some authors and then using the one corresponding with the address. Would love to hear any suggestions.

@Jaapiehetaapie
Copy link
Contributor

I'm now getting the images by fetching the mirror site. But for this im using cors-anywhere.herokuapp.com, is this going to cause any problems in deployment and if so how could otherwise implement it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

2 participants