health: fix broken pages, add image dimensions, a11y & SEO wins
Site-wide health pass (excludes in-progress blog work). Verified with a
local server + headless browser: Timeline, homepage and gallery pages load
with zero console errors and no layout distortion.
Render bugs
- Timeline page (en/mk/si): fix ../../../ paths that overshot the site root,
so the main stylesheet and hero image load again.
- Meet Student Slovenia 2023 (en/mk/si): remove a <figure> referencing
event3-photo-11.png, an image that was never uploaded (broken image).
Performance
- Add intrinsic width/height to 1039 raster <img> tags to prevent layout
shift (CLS); 450 SVGs correctly skipped. Add a global
`img { max-width:100%; height:auto }` safety net so aspect ratio is
preserved and images never overflow.
- Preload the homepage hero (LCP) image on en/mk/si.
- Load Font Awesome non-blocking (media=print/onload swap) with a <noscript>
fallback, on 225 pages.
Accessibility
- Add aria-label to 57 unlabeled newsletter email inputs.
- Add an sr-only <h1> to the three "My Route" pages (had no h1).
- Add an .sr-only utility class.
SEO
- Add meta descriptions to legal/msos-hub/support pages (en/mk/si).
Note: MK/SI meta descriptions are machine-drafted and should be proofread
by a native speaker before considering them final.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
168e4ce378
commit
9ce7450aa1
209 files changed
+1289
-1267
No files matched your search
@@ -56,7 +56,7 @@
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
|
||||
<!-- Font Awesome (for icons) -->
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" crossorigin="anonymous" referrerpolicy="no-referrer" media="print" onload="this.media='all'" /><noscript><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" crossorigin="anonymous" referrerpolicy="no-referrer" /></noscript>
|
||||
|
||||
<!-- Correct path to the main CSS file -->
|
||||
<link rel="stylesheet" href="../../../css/main.css">
|
||||
@@ -200,7 +200,7 @@
|
||||
</header>
|
||||
|
||||
<figure class="article-main-image">
|
||||
<img fetchpriority="high" src="../../../images/slovenia-ljubljana-river-life-hero.webp" alt="A crowd gathered along the Ljubljanica during an event in central Ljubljana">
|
||||
<img width="1400" height="933" fetchpriority="high" src="../../../images/slovenia-ljubljana-river-life-hero.webp" alt="A crowd gathered along the Ljubljanica during an event in central Ljubljana">
|
||||
<figcaption>Ljubljanica River, Ljubljana. Photo: CEV, <a href="https://inside.cev.eu/articles/federations/ljubljana-delivers-another-volleyball-on-water-spectacle/" target="_blank" rel="noopener">inside.cev.eu</a></figcaption>
|
||||
</figure>
|
||||
|
||||
@@ -238,7 +238,7 @@
|
||||
<p>Our recommendation is simple. Do not rush through it between two landmarks. Visit early enough to notice how people actually use it.</p>
|
||||
|
||||
<figure class="article-inline-image">
|
||||
<img loading="lazy" decoding="async" src="../../../images/slovenia-ljubljana-central-market.jpg" alt="Food stalls at the Open Kitchen market in central Ljubljana">
|
||||
<img width="675" height="450" loading="lazy" decoding="async" src="../../../images/slovenia-ljubljana-central-market.jpg" alt="Food stalls at the Open Kitchen market in central Ljubljana">
|
||||
<figcaption>Open Kitchen at Ljubljana's Central Market. Photo: Odprta kuhna, <a href="https://www.visitljubljana.com/en/visitors/tours-and-trips/open-kitchen-on-a-platter-the-gourmet-ljubljana-tasting-menus" target="_blank" rel="noopener">visitljubljana.com</a></figcaption>
|
||||
</figure>
|
||||
|
||||
@@ -257,7 +257,7 @@
|
||||
<p>In summer, arrive before sunset. Sit on the steps, watch the light change on the river, and let the evening develop on its own.</p>
|
||||
|
||||
<figure class="article-inline-image">
|
||||
<img loading="lazy" decoding="async" src="../../../images/slovenia-ljubljana-trnovski-pristan.webp" alt="People beside the river at Trnovski pristan in Ljubljana">
|
||||
<img width="750" height="500" loading="lazy" decoding="async" src="../../../images/slovenia-ljubljana-trnovski-pristan.webp" alt="People beside the river at Trnovski pristan in Ljubljana">
|
||||
<figcaption>Trnovski pristan, Ljubljana. Photo: Gregor Babšek, <a href="https://www.gregorbabsek.si/Ljubljana_znamenitosti_14.html" target="_blank" rel="noopener">gregorbabsek.si</a></figcaption>
|
||||
</figure>
|
||||
|
||||
@@ -286,7 +286,7 @@
|
||||
<p>For someone who has only seen the historic centre, Metelkova can feel like a different city. That contrast is worth seeing.</p>
|
||||
|
||||
<figure class="article-inline-image">
|
||||
<img loading="lazy" decoding="async" src="../../../images/slovenia-ljubljana-metelkova.webp" alt="Murals and outdoor artworks at Metelkova in Ljubljana">
|
||||
<img width="804" height="536" loading="lazy" decoding="async" src="../../../images/slovenia-ljubljana-metelkova.webp" alt="Murals and outdoor artworks at Metelkova in Ljubljana">
|
||||
<figcaption>Metelkova, Ljubljana. Photo: <a href="https://www.tripadvisor.com/Attraction_Review-g274873-d734854-Reviews-Metelkova-Ljubljana_Upper_Carniola_Region.html" target="_blank" rel="noopener">Tripadvisor</a></figcaption>
|
||||
</figure>
|
||||
|
||||
|
||||
Reference in new issue
Block a user