mirror of
https://github.com/samsonjs/mit-license.git
synced 2026-04-27 15:07:42 +00:00
Add Gravatar ALT
This commit is contained in:
parent
7161f230fc
commit
924e7ace1a
1 changed files with 1 additions and 4 deletions
|
|
@ -48,13 +48,10 @@ app.get('*', (req, res) => {
|
||||||
const user = JSON.parse(data)
|
const user = JSON.parse(data)
|
||||||
info = `${year} ${user.copyright}`
|
info = `${year} ${user.copyright}`
|
||||||
theme = user.theme || "default"
|
theme = user.theme || "default"
|
||||||
gravatar = user.gravatar ? `<img id="gravatar" src="https://www.gravatar.com/avatar/${md5(user.email.trim().toLowerCase())}" />` : ``
|
gravatar = user.gravatar ? `<img id="gravatar" alt="Profile image" src="https://www.gravatar.com/avatar/${md5(user.email.trim().toLowerCase())}" />` : ``
|
||||||
// gravatar = '<img id="gravatar" src="https://www.gravatar.com/avatar/' . md5(strtolower(trim($user->email))) . '" />';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Parse the options specified in the URL
|
// Parse the options specified in the URL
|
||||||
// console.log(req.path.split('/'))
|
|
||||||
const options = {}
|
|
||||||
res.set('Content-Type', 'text/html');
|
res.set('Content-Type', 'text/html');
|
||||||
res.send(new Buffer.from(mustache.render(template, {
|
res.send(new Buffer.from(mustache.render(template, {
|
||||||
info,
|
info,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue