atom / atom.io

🌐 A place for feedback on the atom.io website and package API
158 stars 98 forks source link

Preview text is far more than necessary #143

Open Arcanemagus opened 6 years ago

Arcanemagus commented 6 years ago

When sending a link to http://blog.atom.io/2017/11/15/code-together-in-real-time-with-teletype-for-atom.html in Discord, the preview text generated is far larger than it should be, encompasing the entire first section.

image

I'm not sure if this is a Discord issue, an issue with the blog setup, or just the fact that all of that text was put before the first header in this particular article.

cc. @lee-dohm.

lee-dohm commented 6 years ago

This content comes from the meta tags named description and og:description. (The best guide I've seen introducing how these is the Slack guide on its "classic unfurling" strategy.) You can see the content here:

screen shot 2017-11-15 at 12 34 16 pm

If you look at the source for the page, you can also see the <!--more--> HTML comment at the same point where the description is cut off. That's how we tell the software what to put in the description. I'll see if we can edit it to be a better summary or teaser.