Skip to content

Commit a70b0d3

Browse files
committed
refactor(svg): reuse renderHeader in auto theme renderer
1 parent e15a46a commit a70b0d3

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

lib/svg/generator.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -294,13 +294,7 @@ function generateAutoThemeSVG(
294294
fill="none"
295295
role="img"
296296
>
297-
<title>CommitPulse Stats for ${safeUser} </title>
298-
<desc>
299-
${params.user || 'This user'} has ${stats.totalContributions} total contributions and a longest streak of ${stats.longestStreak} days.
300-
</desc>
301-
<defs>
302-
<filter id="glow" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="${fs(5)}" result="blur" /><feComposite in="SourceGraphic" in2="blur" operator="over" /></filter>
303-
</defs>
297+
${renderHeader(safeUser, stats, sf)}
304298
305299
<style>
306300
@import url('https://fonts.googleapis.com/css2?family=Fira+Code&amp;family=JetBrains+Mono&amp;family=Roboto&amp;display=swap');

0 commit comments

Comments
 (0)