You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alter public/javascript/widget.js to change hosting domain
getServer(){return'https://like.lhzhang.com'// change this url to your firebase app url}
Alter functions/index.js to config cors
constwhitelist=['https://lhzhang.com']// change this domain to your blog domain
Add scripts to your blog post
<spanclass = "like-wrapper"
like-shortname = '{{ site.disqus }}' <!-- required. any string works -->like-identifier = '{{ page.guid }}' <!-- identifier of this post, uuid prefered -->like-name = '{{ page.title }}' <!-- post title -->like-btn = '' <!-- text for like button -->like-link = '{{ site.atom-baseurl }}{{ page.url }}' <!-- post link -->></span><scripttype="text/javascript">varl=document.createElement('script');l.type='text/javascript';l.async=true;l.src='https://like.lhzhang.com/javascript/widget.js';// change this url to your firebase hosting url of widget.js(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(l);</script>