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
+12
-12
@@ -54,7 +54,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>
|
||||
|
||||
<!-- Povezava na glavno CSS datoteko -->
|
||||
<link rel="stylesheet" href="../../css/main.css">
|
||||
@@ -206,7 +206,7 @@
|
||||
<div class="newshub-grid">
|
||||
<article class="newshub-card" data-type="news">
|
||||
<a class="newshub-media" href="../../si/news/proof-of-means-updated-2026/">
|
||||
<img src="../../images/news-proof-of-means.webp" alt="Znesek dokazila o sredstvih posodobljen na 507,43 € na mesec" loading="lazy">
|
||||
<img width="1600" height="1067" src="../../images/news-proof-of-means.webp" alt="Znesek dokazila o sredstvih posodobljen na 507,43 € na mesec" loading="lazy">
|
||||
<span class="news-badge news-badge--news"><i class="fas fa-bullhorn" aria-hidden="true"></i> Novica</span>
|
||||
</a>
|
||||
<div class="newshub-body">
|
||||
@@ -250,7 +250,7 @@
|
||||
</article>
|
||||
<article class="newshub-card" data-type="project">
|
||||
<a class="newshub-media" href="../../si/projects/in-memory-of-the-kochani-victims/">
|
||||
<img src="../../images/kochani-1.webp" alt="V spomin na žrtve tragedije v Kočanih" loading="lazy">
|
||||
<img width="720" height="480" src="../../images/kochani-1.webp" alt="V spomin na žrtve tragedije v Kočanih" loading="lazy">
|
||||
<span class="news-badge news-badge--project"><i class="fas fa-calendar-day" aria-hidden="true"></i> Dogodek</span>
|
||||
</a>
|
||||
<div class="newshub-body">
|
||||
@@ -261,7 +261,7 @@
|
||||
</article>
|
||||
<article class="newshub-card" data-type="project">
|
||||
<a class="newshub-media" href="../../si/projects/meet-student-slovenia-2024/">
|
||||
<img src="../../images/event4-img-1.webp" alt="Spoznaj študentsko Slovenijo 2024" loading="lazy">
|
||||
<img width="1920" height="1280" src="../../images/event4-img-1.webp" alt="Spoznaj študentsko Slovenijo 2024" loading="lazy">
|
||||
<span class="news-badge news-badge--project"><i class="fas fa-calendar-day" aria-hidden="true"></i> Dogodek</span>
|
||||
</a>
|
||||
<div class="newshub-body">
|
||||
@@ -272,7 +272,7 @@
|
||||
</article>
|
||||
<article class="newshub-card" data-type="project">
|
||||
<a class="newshub-media" href="../../si/projects/humanitarian-tournament-in-maribor/">
|
||||
<img src="../../images/maribor-tournament-1.webp" alt="Humanitarni športni turnir: Igramo s srcem, skupaj za Kočane" loading="lazy">
|
||||
<img width="720" height="480" src="../../images/maribor-tournament-1.webp" alt="Humanitarni športni turnir: Igramo s srcem, skupaj za Kočane" loading="lazy">
|
||||
<span class="news-badge news-badge--project"><i class="fas fa-calendar-day" aria-hidden="true"></i> Dogodek</span>
|
||||
</a>
|
||||
<div class="newshub-body">
|
||||
@@ -283,7 +283,7 @@
|
||||
</article>
|
||||
<article class="newshub-card" data-type="project">
|
||||
<a class="newshub-media" href="../../si/projects/macedonian-student-night-in-ljubljana/">
|
||||
<img src="../../images/msnl-1.webp" alt="Makedonska študentska noč v Ljubljani" loading="lazy">
|
||||
<img width="1430" height="757" src="../../images/msnl-1.webp" alt="Makedonska študentska noč v Ljubljani" loading="lazy">
|
||||
<span class="news-badge news-badge--project"><i class="fas fa-calendar-day" aria-hidden="true"></i> Dogodek</span>
|
||||
</a>
|
||||
<div class="newshub-body">
|
||||
@@ -294,7 +294,7 @@
|
||||
</article>
|
||||
<article class="newshub-card" data-type="project">
|
||||
<a class="newshub-media" href="../../si/projects/watching-handball-together-in-slovenia/">
|
||||
<img src="../../images/handball-2025-1.webp" alt="Navijanje za Makedonijo, skupno gledanje rokometa v Sloveniji" loading="lazy">
|
||||
<img width="720" height="480" src="../../images/handball-2025-1.webp" alt="Navijanje za Makedonijo, skupno gledanje rokometa v Sloveniji" loading="lazy">
|
||||
<span class="news-badge news-badge--project"><i class="fas fa-calendar-day" aria-hidden="true"></i> Dogodek</span>
|
||||
</a>
|
||||
<div class="newshub-body">
|
||||
@@ -305,7 +305,7 @@
|
||||
</article>
|
||||
<article class="newshub-card" data-type="project">
|
||||
<a class="newshub-media" href="../../si/projects/in-memory-of-frosina-kulakova/">
|
||||
<img src="../../images/frosina-1.webp" alt="V spomin na Frosino Kulakovo" loading="lazy">
|
||||
<img width="720" height="480" src="../../images/frosina-1.webp" alt="V spomin na Frosino Kulakovo" loading="lazy">
|
||||
<span class="news-badge news-badge--project"><i class="fas fa-calendar-day" aria-hidden="true"></i> Dogodek</span>
|
||||
</a>
|
||||
<div class="newshub-body">
|
||||
@@ -316,7 +316,7 @@
|
||||
</article>
|
||||
<article class="newshub-card" data-type="project">
|
||||
<a class="newshub-media" href="../../si/projects/meet-student-slovenia-2023/">
|
||||
<img src="../../images/event3-photo-1.webp" alt="Spoznaj študentsko Slovenijo 2023" loading="lazy">
|
||||
<img width="1920" height="1280" src="../../images/event3-photo-1.webp" alt="Spoznaj študentsko Slovenijo 2023" loading="lazy">
|
||||
<span class="news-badge news-badge--project"><i class="fas fa-calendar-day" aria-hidden="true"></i> Dogodek</span>
|
||||
</a>
|
||||
<div class="newshub-body">
|
||||
@@ -327,7 +327,7 @@
|
||||
</article>
|
||||
<article class="newshub-card" data-type="project">
|
||||
<a class="newshub-media" href="../../si/projects/paint-and-wine-at-sunset/">
|
||||
<img src="../../images/paint-wine-1.webp" alt="Slikanje in vino ob sončnem zahodu, praznovanje dneva žena z umetnostjo in glasbo" loading="lazy">
|
||||
<img width="1600" height="1067" src="../../images/paint-wine-1.webp" alt="Slikanje in vino ob sončnem zahodu, praznovanje dneva žena z umetnostjo in glasbo" loading="lazy">
|
||||
<span class="news-badge news-badge--project"><i class="fas fa-calendar-day" aria-hidden="true"></i> Dogodek</span>
|
||||
</a>
|
||||
<div class="newshub-body">
|
||||
@@ -338,7 +338,7 @@
|
||||
</article>
|
||||
<article class="newshub-card" data-type="project">
|
||||
<a class="newshub-media" href="../../si/projects/morning-coffee-in-front-of-ctk/">
|
||||
<img src="../../images/event4-image1.webp" alt="Jutranja kava pred CTK, 2024: Kava, burek in obilo nasmehov" loading="lazy">
|
||||
<img width="1920" height="1280" src="../../images/event4-image1.webp" alt="Jutranja kava pred CTK, 2024: Kava, burek in obilo nasmehov" loading="lazy">
|
||||
<span class="news-badge news-badge--project"><i class="fas fa-calendar-day" aria-hidden="true"></i> Dogodek</span>
|
||||
</a>
|
||||
<div class="newshub-body">
|
||||
@@ -394,7 +394,7 @@
|
||||
<p>Novice, obvestila in razpisi, naravnost v vaš e-poštni predal.</p>
|
||||
<form class="subscribe-form-bottom">
|
||||
<div class="input-wrapper">
|
||||
<input type="email" placeholder="Vnesite svoj e-mail">
|
||||
<input type="email" placeholder="Vnesite svoj e-mail" aria-label="E-poštni naslov">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary-orange">Naroči se</button>
|
||||
</form>
|
||||
|
||||
@@ -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>
|
||||
|
||||
<!-- Povezava na glavno CSS datoteko -->
|
||||
<link rel="stylesheet" href="../../../css/main.css">
|
||||
@@ -199,7 +199,7 @@
|
||||
<h1>Znesek dokazila o sredstvih posodobljen na 507,43 € na mesec</h1>
|
||||
<p class="news-article-date">Objavljeno 1 avgust 2026</p>
|
||||
<figure class="news-article-hero">
|
||||
<img fetchpriority="high" src="../../../images/news-proof-of-means.webp" alt="Blagajna, polna evrskih kovancev in bankovcev">
|
||||
<img width="1600" height="1067" fetchpriority="high" src="../../../images/news-proof-of-means.webp" alt="Blagajna, polna evrskih kovancev in bankovcev">
|
||||
<figcaption>Image by <a href="https://pixabay.com/users/alexas_fotos-686414/?utm_source=link-attribution&utm_medium=referral&utm_campaign=image&utm_content=1642989" target="_blank" rel="noopener">Alexa</a> from <a href="https://pixabay.com/?utm_source=link-attribution&utm_medium=referral&utm_campaign=image&utm_content=1642989" target="_blank" rel="noopener">Pixabay</a></figcaption>
|
||||
</figure>
|
||||
<div class="news-article-body">
|
||||
@@ -220,7 +220,7 @@
|
||||
<p>Novice, obvestila in razpisi, naravnost v vaš e-poštni predal.</p>
|
||||
<form class="subscribe-form-bottom">
|
||||
<div class="input-wrapper">
|
||||
<input type="email" placeholder="Vnesite svoj e-mail">
|
||||
<input type="email" placeholder="Vnesite svoj e-mail" aria-label="E-poštni naslov">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary-orange">Naroči se</button>
|
||||
</form>
|
||||
|
||||
Reference in new issue
Block a user