Skip to content

Commit 9493436

Browse files
committed
feat(seo): update branding assets and improve performance
- Update avatar and default OG image with new design - Add favicon in multiple sizes (16px, 32px, full) - Move KaTeX CSS from CDN to local for better caching - Add width/height attributes to images for CLS prevention - Add lazy loading to blog list images
1 parent 76a3e92 commit 9493436

File tree

9 files changed

+8
-5
lines changed

9 files changed

+8
-5
lines changed

public/favicon-16.png

1.66 KB
Loading

public/favicon-32.png

3.17 KB
Loading

public/favicon.png

932 KB
Loading

public/img/avatar.png

543 KB
Loading

public/styles/katex.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/assets/default_img.png

297 KB
Loading

src/components/BaseHead.astro

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ const enURL = isEnglish
3030
<!-- Global Metadata -->
3131
<meta charset="utf-8" />
3232
<meta name="viewport" content="width=device-width,initial-scale=1" />
33-
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
34-
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
33+
<link rel="icon" type="image/png" href="/favicon.png" />
34+
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32.png" />
35+
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16.png" />
36+
<link rel="apple-touch-icon" href="/img/avatar.png" />
3537
<link rel="sitemap" href="/sitemap-index.xml" />
3638
<link
3739
rel="alternate"
@@ -46,7 +48,7 @@ const enURL = isEnglish
4648
<link rel="preload" href="/fonts/atkinson-bold.woff" as="font" type="font/woff" crossorigin />
4749

4850
<!-- KaTeX CSS for math rendering -->
49-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css" integrity="sha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odI+WdtXRGWt2kTvGFasHpSy3SV" crossorigin="anonymous">
51+
<link rel="stylesheet" href="/styles/katex.min.css" />
5052

5153
<!-- Canonical URL -->
5254
<link rel="canonical" href={canonicalURL} />

src/components/Footer.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const today = new Date();
66
<div class="footer-content">
77
<span class="copyright">&copy; {today.getFullYear()} ppippi-dev</span>
88
<a href="https://buymeacoffee.com/ppippi" target="_blank" class="bmc-link">
9-
<img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" />
9+
<img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" width="130" height="36" />
1010
</a>
1111
</div>
1212
</footer>

src/pages/en/blog/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ const posts = (await getCollection('blog-en')).sort(
156156
</div>
157157
{post.data.heroImage && (
158158
<a href={`/en/blog/${post.id}/`} class="post-image">
159-
<img src={post.data.heroImage} alt={post.data.title} />
159+
<img src={post.data.heroImage} alt={post.data.title} width="200" height="140" loading="lazy" />
160160
</a>
161161
)}
162162
</article>

0 commit comments

Comments
 (0)