Use eleventy's url function to apply pathPrefix.
All checks were successful
Build Eleventy Forgero / build (24.x) (push) Successful in 37s
All checks were successful
Build Eleventy Forgero / build (24.x) (push) Successful in 37s
This commit is contained in:
parent
ec25c348e8
commit
6b8635defe
11 changed files with 172 additions and 102 deletions
8
misc.njk
8
misc.njk
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue