File size: 331 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import { toProfile, toAvatar } from 'Link';
export default function generate(helper) {
const { github, avatar } = helper;
const lines = [
`<a href = '${toProfile(github)}'>`,
` <img`,
` width = 25`,
` src = '${toAvatar(avatar)}'`,
` />`,
`</a>`,
];
return lines.join('\n');
}
|