Skip to content

Commit

Permalink
💄 Enhance accessibility by adding hidden links for quiz navigation an…
Browse files Browse the repository at this point in the history
…d updating sitemap with new quiz stats URL
  • Loading branch information
Malte2036 committed Jan 21, 2025
1 parent 00b14bd commit d205d01
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,13 @@
</div>
</div>

<!-- svelte-ignore a11y-missing-content -->
<a href="/quiz/stats" class="hidden" />
<!-- svelte-ignore a11y-missing-content -->
<a href="/faq" class="hidden" />
{#each ['ga', 'agt', 'cbrn'] as questionType}
<!-- svelte-ignore a11y-missing-content -->
<a href={`/quiz/${questionType}`} class="hidden" />
<!-- svelte-ignore a11y-missing-content -->
<a href={`/quiz/${questionType}/listing`} class="hidden" />
{/each}
4 changes: 4 additions & 0 deletions src/routes/sitemap.xml/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ export async function GET() {
<loc>https://thw-tools.de/clothing/</loc>
<priority>0.8</priority>
</url>
<url>
<loc>https://thw-tools.de/quiz/stats/</loc>
<priority>0.4</priority>
</url>
${quizTypeLinks.join('')}
${singleQuestionLinks.join('')}
</urlset>`.trim(),
Expand Down

0 comments on commit d205d01

Please sign in to comment.