borkdude/quickblog

No social media preview on Twitter?

borkdude opened this issue · 3 comments

I posted the https://blog.michielborkent.nl/babashka-test-runner.html link to Twitter, but no social media preview appeared.

cc @jmglov

Taking a look now.

There are a few problems here:

  • Your base template doesn't contain the social sharing meta tags. Compare to the latest base template from quickblog. You can fix this by running bb quickblog refresh-templates in your blog repo.
  • Your post's Markdown file doesn't contain a Description or Image metadata line. You can add something like this:
    Title: Sharing is caring
    Date: 2022-08-16
    Tags: demo
    Image: assets/2022-08-16-sharing-preview.png
    Image-Alt: A leather-bound notebook lies open on a writing desk
    Twitter-Handle: quickblog
    Description: quickblog now creates nifty social media sharing cards / previews. Read all about how this works and how you can maximise engagement with your posts!
    
    You may have already heard the good news: quickblog is more social than ever!
    ...
    

I'll try to make this more obvious in the documentation.

Thanks! I'll try this next time I write a blog