diff --git a/templates/blogpost.html b/templates/blogpost.html index 7782f55..61a4b38 100644 --- a/templates/blogpost.html +++ b/templates/blogpost.html @@ -76,7 +76,7 @@ function share_on_mastodon() { var url = window.location.href; // get the page title from the og:title meta tag, if it exists. - var title = document.querySelectorAll('meta[property="og:title"]')[0].getattribute("content"); + var title = document.querySelectorAll('meta[property="og:title"]')[0].getAttribute("content"); // Otherwise, use the tag as the title if (!title) var title = document.getElementsByTagName("title")[0].innerHTML;