1
0
Fork 0
mirror of https://github.com/dilllxd/gitfolio.git synced 2024-08-14 22:28:09 +00:00

Update populate.js

This commit is contained in:
Dylan H 2020-06-02 15:32:50 -04:00 committed by GitHub
parent 7e478ecb0b
commit f29fdb9d71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -106,6 +106,9 @@ module.exports.updateHTML = (username, opts) => {
icon.setAttribute("type", "image/png"); icon.setAttribute("type", "image/png");
document.getElementsByTagName("head")[0].appendChild(icon); document.getElementsByTagName("head")[0].appendChild(icon);
document.getElementById(
"profile_img"
).style.background = `url('${user.avatar_url}') center center`;
document.getElementsByTagName("head")[0].innerHTML += ` document.getElementsByTagName("head")[0].innerHTML += `
<meta name="description" content="${user.bio}" /> <meta name="description" content="${user.bio}" />
<meta property="og:image" content="${user.avatar_url}" /> <meta property="og:image" content="${user.avatar_url}" />