Skip to content

Commit

Permalink
Update gist-card.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sagarbendale2004 authored Oct 1, 2024
1 parent fb03057 commit 11fb327
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/cards/gist-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,16 @@ const renderGistCard = (gistData, options = {}) => {
`);
card.setHideBorder(hide_border);

return card.render(`
<text class="description" x="25" y="-5">
return ` <a href="https://github.com/${nameWithOwner}" target="_blank" rel="noopener noreferrer">
${card.render(`
<text class="description" x="25" y="-5">
${descriptionSvg}
</text>
<g transform="translate(30, ${height - 75})">
</text>
<g transform="translate(30, ${height - 75})">
${starAndForkCount}
</g>
`);
</g>
`)}
</a>`;
};

export { renderGistCard, HEADER_MAX_LENGTH };
Expand Down

0 comments on commit 11fb327

Please sign in to comment.