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

@ -10,21 +10,25 @@ title: Adrian Victor:Misc
<main>
<h1>{{ i18n[langKey].miscellaneous }}</h1>
<ul>
<dl>
{% for page in collections.misc %}
{% set t = page | getTranslation(langKey) %}
<dt>
<a href="/{{ langKey }}/misc/{{ page.fileSlug }}/">
<a href="{{ ('/' ~ langKey ~ '/misc/' ~ page.fileSlug ~ '/') | url }}">
{{ page.data.pageTitle or t.pageTitle }}
</a>
</dt>
<dd>
{% if page.data["88x31"] %}
<img src="/static/images/88x31/{{ page.data["88x31"] }}"><br>
<img
src="{{ ('/static/images/88x31/' ~ page.data['88x31']) | url }}"
><br>
{% endif %}
{{ t.pageDescription }}
</dd>
{% endfor %}