diff --git a/src/layouts/base.astro b/src/layouts/base.astro index 51b9ceb..c67e5fa 100644 --- a/src/layouts/base.astro +++ b/src/layouts/base.astro @@ -6,6 +6,10 @@ const {banner, title, description} = Astro.props; import cfonts from 'cfonts'; +function genHeading(str) { + return cfonts.render(str + ' ', { font: '', maxLength: 5000 }, null, null, {width: "5000", height: "5000"}).string; +} + ---
@@ -88,7 +92,7 @@ import cfonts from 'cfonts';{cfonts.render(title + ' ', { font: '', maxLength: 2500 }).string}
+ {genHeading(title)}