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/macedonia-heritage-stobi-street-hero.webp" alt="An ancient street and building remains at the archaeological site of Stobi">
|
||||
<img width="1050" height="700" fetchpriority="high" src="../../../images/macedonia-heritage-stobi-street-hero.webp" alt="An ancient street and building remains at the archaeological site of Stobi">
|
||||
<figcaption>Stobi, an ancient city in central Macedonia. Photo: <a href="https://www.archaeology.wiki/blog/2013/07/26/archaeological-work-to-be-resumed-in-stobi/" target="_blank" rel="noopener">archaeology.wiki</a></figcaption>
|
||||
</figure>
|
||||
|
||||
@@ -246,7 +246,7 @@
|
||||
<p>The site should not be presented only as an ancient ruin. It is also a record of archaeological research, conservation, reconstruction, and decisions about how heritage is shown to the public.</p>
|
||||
|
||||
<figure class="article-inline-image">
|
||||
<img loading="lazy" decoding="async" src="../../../images/macedonia-heritage-heraclea-mosaic.webp" alt="A preserved early Christian mosaic at Heraclea Lyncestis near Bitola">
|
||||
<img width="766" height="511" loading="lazy" decoding="async" src="../../../images/macedonia-heritage-heraclea-mosaic.webp" alt="A preserved early Christian mosaic at Heraclea Lyncestis near Bitola">
|
||||
<figcaption>Heraclea Lyncestis, an ancient city near Bitola. Photo: Elizabeta Dimitrova, <a href="https://www.researchgate.net/figure/Heraclea-Lyncestis-detail_fig5_349303661" target="_blank" rel="noopener">ResearchGate</a></figcaption>
|
||||
</figure>
|
||||
|
||||
@@ -285,7 +285,7 @@
|
||||
<p>Krusevo is not one memorial. It is a network of places in which national, local, Aromanian, artistic, and family histories overlap.</p>
|
||||
|
||||
<figure class="article-inline-image">
|
||||
<img loading="lazy" decoding="async" src="../../../images/macedonia-heritage-kokino.jpg" alt="The rocky archaeological landscape of Kokino at Tatićev Kamen">
|
||||
<img width="810" height="540" loading="lazy" decoding="async" src="../../../images/macedonia-heritage-kokino.jpg" alt="The rocky archaeological landscape of Kokino at Tatićev Kamen">
|
||||
<figcaption>Kokino, a prehistoric megalithic observatory. Photo: <a href="https://northmacedonia-timeless.com/eng/things_to_do/senses/touch/archaeology/kokino/" target="_blank" rel="noopener">northmacedonia-timeless.com</a></figcaption>
|
||||
</figure>
|
||||
|
||||
@@ -302,7 +302,7 @@
|
||||
<p>Heritage becomes stronger when the route between objects is preserved in the story.</p>
|
||||
|
||||
<figure class="article-inline-image">
|
||||
<img loading="lazy" decoding="async" src="../../../images/macedonia-heritage-krusevo-makedonium.jpg" alt="The Ilinden Monument, known as Makedonium, above Krusevo">
|
||||
<img width="590" height="393" loading="lazy" decoding="async" src="../../../images/macedonia-heritage-krusevo-makedonium.jpg" alt="The Ilinden Monument, known as Makedonium, above Krusevo">
|
||||
<figcaption>Makedonium, the Ilinden Monument above Kruševo. Photo: <a href="https://www.airvuz.com/video/ALIEN-Monument-?id=5b3c05705a1b667101abd26f" target="_blank" rel="noopener">airvuz.com</a></figcaption>
|
||||
</figure>
|
||||
|
||||
|
||||
Reference in new issue
Block a user