Use eleventy's url function to apply pathPrefix.
All checks were successful
Build Eleventy Forgero / build (24.x) (push) Successful in 37s

This commit is contained in:
天クマ 2026-05-14 14:59:13 -03:00
commit 6b8635defe
11 changed files with 172 additions and 102 deletions

View file

@ -3,7 +3,7 @@ permalink: "/index.html"
layout: base.njk
langKey: "en"
---
<script src="/static/scripts/language.js" defer></script>
<script src="{{ '/static/scripts/language.js' | url }}" defer></script>
<style>
#headerLinks {
display: none!important;
@ -12,7 +12,7 @@ langKey: "en"
<main>
<h1 id="languageTitle">Pick a language</h1>
<ul id="languageList">
<li><a href="/en/">English</a></li>
<li><a href="/pt/">Português Brasileiro</a></li>
<li><a href="{{ '/en/' | url }}">English</a></li>
<li><a href="{{ '/pt/' | url }}">Português Brasileiro</a></li>
</ul>
</main>