ror-community / ror-site

ROR main site
https://ror.org
MIT License
3 stars 5 forks source link

Set up social preview for blog posts #97

Closed mariagould closed 1 year ago

mariagould commented 1 year ago

Describe the problem you would like to solve When we share ROR blog posts on social media sites (Twitter, LinkedIn), a preview of the content would make the posting more eye-catching and accessible. Currently, our blog links do not do this, so we need to add more detail to social posts and manually upload any visuals. Screenshots show sample tweet linking to a ROR blog post vs. DataCite blog.

Describe the solution you'd like Set up blog posts to generate an auto-preview when they are shared on social media.

Who would benefit from this feature? ROR comms team, social media followers.

Additional information

Screen Shot 2023-01-24 at 5 53 33 PM Screen Shot 2023-01-24 at 5 53 03 PM
amandafrench commented 1 year ago

@mariagould I've deployed the Twitter Card feature to dev.ror.org -- try it out with the Caltech blog post (obviously without actually posting the tweet!). Note that making the feature work does involve adding some additional content to the front matter of the blog post, so right now it will only work with that blog post. I've put an empty copy of the necessary front matter at /content/test/_post.md and have also set up a blog post archetype (though I don't think our site is configured for Hugo archetypes yet).

Screenshot 2023-02-22 at 8 00 02 AM
amandafrench commented 1 year ago

Resolved in this commit