fix: transform links with basepath

This commit is contained in:
2025-02-07 16:52:17 +01:00
parent 3a00e7c680
commit a5fe0a7054
5 changed files with 36 additions and 6 deletions

View File

@@ -25,7 +25,7 @@
<img src="{{ site.basePath }}/assets/images/brand.jpg" alt="Logo du {{ site.subject }}" />
<nav>
{{#each collections.nav}}
<a href="{{ this.path }}">{{ this.title }}</a>
<a href="{{ basePath }}/{{ path }}">{{ title }}</a>
{{/each}}
</nav>
<button id="theme-toggle" class="theme-toggle">🌙</button>
@@ -75,8 +75,8 @@
</div>
</footer>
<script src="{{ site.basePath }}/assets/scripts/theme-toggle.js" async defer ></script>
<script src="{{ site.basePath }}/assets/scripts/page-size.js" async defer ></script>
<script async src="{{ site.basePath }}/assets/scripts/theme-toggle.js" ></script>
<script src="{{ site.basePath }}/assets/scripts/page-size.js" ></script>
</body>
</html>