Skip to content

Commit c942163

Browse files
committed
fix(pagespeed): fix heading inconsistency reported in pagespeed.web.dev
1 parent d278936 commit c942163

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

src/components/events/poster-toggle.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ export function PosterToggle({ posters, initialLanguageCode, alt, className }: P
5353
width={0}
5454
height={0}
5555
sizes="100vw"
56+
loading="lazy"
57+
fetchPriority="high"
5658
className="h-auto w-full"
5759
/>
5860
</div>

src/components/sections/footer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export function Footer() {
1212
<div className="mx-auto max-w-4xl">
1313
<div className="grid gap-8 text-left md:grid-cols-2 md:justify-items-center">
1414
<div className="flex flex-col items-center space-y-4 md:items-start">
15-
<h3 className="font-semibold">Sitemap</h3>
15+
<h2 className="font-semibold">Sitemap</h2>
1616
<ul className="grid grid-cols-2 gap-x-8 gap-y-2">
1717
{siteConfig.mainNav.map((link) => (
1818
<li key={link.href}>
@@ -27,7 +27,7 @@ export function Footer() {
2727
</ul>
2828
</div>
2929
<div className="flex flex-col items-center space-y-4">
30-
<h3 className="font-semibold">Connect with us!</h3>
30+
<h2 className="font-semibold">Connect with us!</h2>
3131
<SocialLinks
3232
variant="footer"
3333
className="flex flex-col items-start gap-3"

src/components/sections/whats-happening.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export function WhatsHappening({ events }: { events: WhatsHappeningEvent[] }) {
3636
/>
3737
</div>
3838
<div className="flex flex-1 flex-col space-y-2">
39-
<h3 className="text-2xl font-semibold">{event.title}</h3>
39+
<h2 className="text-2xl font-semibold">{event.title}</h2>
4040
<p className="text-muted-foreground">{event.description}</p>
4141
<div className="mt-auto pt-2">
4242
<AnimatedFillButton

src/content/events/restage-of-rape-of-nanking.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ import { siteConfig } from "@/lib/config";
3434
}
3535
/>
3636

37-
<PosterToggle
38-
posters={[
39-
{ code: "en", label: "English", src: "/event/2025-12-13/poster.en.png" },
40-
{ code: "zh", label: "中文", src: "/event/2025-12-13/poster.zh.png" },
41-
]}
42-
initialLanguageCode="en"
43-
alt={frontmatter.title + " event poster"}
44-
/>
37+
<PosterToggle
38+
posters={[
39+
{ code: "en", label: "English", src: "/event/2025-12-13/poster.en.png" },
40+
{ code: "zh", label: "中文", src: "/event/2025-12-13/poster.zh.png" },
41+
]}
42+
initialLanguageCode="en"
43+
alt={frontmatter.title + " event poster"}
44+
/>
4545

4646
<div className="grid gap-6 sm:grid-cols-3">
4747
<AnimatedFillButton

0 commit comments

Comments
 (0)