Dynamic variables in the links

I’m trying to figure out who I could pass the blog post’s title to the share link using the link block in Webfow.

I currently call the share functionality with javascript, using:

`javascript:window.open("https://www.facebook.com/sharer/sharer.php?u=" + location.href);

The current page url I can get with location.href param, but how can I get the title of the blog post?

Thanks for the suggestions