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>
|
||||
|
||||
<!-- Правилна патека до главната CSS-датотека -->
|
||||
<link rel="stylesheet" href="../../../css/main.css">
|
||||
@@ -201,7 +201,7 @@
|
||||
</header>
|
||||
|
||||
<figure class="article-main-image">
|
||||
<img fetchpriority="high" src="../../../images/kochani-1.webp" alt="Свеќи и цвеќе на Конгресниот плоштад во спомен на жртвите од трагедијата во Кочани">
|
||||
<img width="720" height="480" fetchpriority="high" src="../../../images/kochani-1.webp" alt="Свеќи и цвеќе на Конгресниот плоштад во спомен на жртвите од трагедијата во Кочани">
|
||||
</figure>
|
||||
|
||||
<div class="article-body">
|
||||
@@ -210,7 +210,7 @@
|
||||
<p>Заедницата на МСОС одлучи да создаде момент на солидарност во Словенија, не како чин на протест или политика, туку како начин да се изрази хуманост, тага и единство пред трагедијата.</p>
|
||||
|
||||
<figure class="article-inline-image">
|
||||
<img loading="lazy" decoding="async" src="../../../images/kochani-2.webp" alt="Светлина од свеќи и цвеќе на жалниот собир во Љубљана">
|
||||
<img width="720" height="480" loading="lazy" decoding="async" src="../../../images/kochani-2.webp" alt="Светлина од свеќи и цвеќе на жалниот собир во Љубљана">
|
||||
</figure>
|
||||
|
||||
<h2>Собирот во Љубљана</h2>
|
||||
@@ -220,7 +220,7 @@
|
||||
<p>Студенти, семејства и членови на пошироката заедница оставаа цвеќе и палеа свеќи, создавајќи море од светлина и боја што остана недопрено со недели потоа, бидејќи никој не се осмели да го наруши меморијалот. Атмосферата беше свечена, почитувачка и длабоко емотивна.</p>
|
||||
|
||||
<figure class="article-inline-image">
|
||||
<img loading="lazy" decoding="async" src="../../../images/kochani-3.webp" alt="Море од свеќи и цвеќе оставени од присутните">
|
||||
<img width="720" height="480" loading="lazy" decoding="async" src="../../../images/kochani-3.webp" alt="Море од свеќи и цвеќе оставени од присутните">
|
||||
</figure>
|
||||
|
||||
<h2>Порака преку границите</h2>
|
||||
@@ -230,7 +230,7 @@
|
||||
<p>Настанот доби покриеност и во Словенија, каде претседателот на МСОС даде краток интервју за РТВ Словенија, размислувајќи за важноста на единството во тешки времиња.</p>
|
||||
|
||||
<figure class="article-inline-image">
|
||||
<img loading="lazy" decoding="async" src="../../../images/kochani-4.webp" alt="Присутните стојат заедно за време на минутата тишина">
|
||||
<img width="720" height="480" loading="lazy" decoding="async" src="../../../images/kochani-4.webp" alt="Присутните стојат заедно за време на минутата тишина">
|
||||
</figure>
|
||||
|
||||
<h2>Завршни зборови</h2>
|
||||
@@ -243,10 +243,10 @@
|
||||
<section class="event-gallery">
|
||||
<h2 class="event-gallery-title">Фотографии од настанот</h2>
|
||||
<div class="event-gallery-grid js-lightbox">
|
||||
<button type="button" class="eg-thumb" data-full="../../../images/kochani-1.webp" data-caption="Во спомен на жртвите во Кочани"><img loading="lazy" decoding="async" src="../../../images/kochani-1.webp" alt="Во спомен на жртвите во Кочани, photo 1"></button>
|
||||
<button type="button" class="eg-thumb" data-full="../../../images/kochani-2.webp" data-caption="Во спомен на жртвите во Кочани"><img loading="lazy" decoding="async" src="../../../images/kochani-2.webp" alt="Во спомен на жртвите во Кочани, photo 2"></button>
|
||||
<button type="button" class="eg-thumb" data-full="../../../images/kochani-3.webp" data-caption="Во спомен на жртвите во Кочани"><img loading="lazy" decoding="async" src="../../../images/kochani-3.webp" alt="Во спомен на жртвите во Кочани, photo 3"></button>
|
||||
<button type="button" class="eg-thumb" data-full="../../../images/kochani-4.webp" data-caption="Во спомен на жртвите во Кочани"><img loading="lazy" decoding="async" src="../../../images/kochani-4.webp" alt="Во спомен на жртвите во Кочани, photo 4"></button>
|
||||
<button type="button" class="eg-thumb" data-full="../../../images/kochani-1.webp" data-caption="Во спомен на жртвите во Кочани"><img width="720" height="480" loading="lazy" decoding="async" src="../../../images/kochani-1.webp" alt="Во спомен на жртвите во Кочани, photo 1"></button>
|
||||
<button type="button" class="eg-thumb" data-full="../../../images/kochani-2.webp" data-caption="Во спомен на жртвите во Кочани"><img width="720" height="480" loading="lazy" decoding="async" src="../../../images/kochani-2.webp" alt="Во спомен на жртвите во Кочани, photo 2"></button>
|
||||
<button type="button" class="eg-thumb" data-full="../../../images/kochani-3.webp" data-caption="Во спомен на жртвите во Кочани"><img width="720" height="480" loading="lazy" decoding="async" src="../../../images/kochani-3.webp" alt="Во спомен на жртвите во Кочани, photo 3"></button>
|
||||
<button type="button" class="eg-thumb" data-full="../../../images/kochani-4.webp" data-caption="Во спомен на жртвите во Кочани"><img width="720" height="480" loading="lazy" decoding="async" src="../../../images/kochani-4.webp" alt="Во спомен на жртвите во Кочани, photo 4"></button>
|
||||
</div>
|
||||
</section>
|
||||
</article>
|
||||
@@ -257,7 +257,7 @@
|
||||
<p>Вести, соопштенија и отворени повици, директно во вашето сандаче.</p>
|
||||
<form class="subscribe-form-bottom">
|
||||
<div class="input-wrapper">
|
||||
<input type="email" placeholder="Внесете ја вашата е-пошта">
|
||||
<input type="email" placeholder="Внесете ја вашата е-пошта" aria-label="Е-пошта">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary-orange">Претплати се</button>
|
||||
</form>
|
||||
|
||||
Reference in new issue
Block a user